/[pdpsoft]/nl.nikhef.pdp.lrms-py-generic/branches/RB-2.2.1/Makefile
ViewVC logotype

Diff of /nl.nikhef.pdp.lrms-py-generic/branches/RB-2.2.1/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2259 by templon, Tue Apr 5 13:17:50 2011 UTC revision 2260 by templon, Tue Apr 5 13:29:37 2011 UTC
# Line 44  ifeq ($(INSTALLPREFIX),) Line 44  ifeq ($(INSTALLPREFIX),)
44          INSTALLPREFIX := $(TARGPREFIX)          INSTALLPREFIX := $(TARGPREFIX)
45  endif  endif
46    
47    # determine location for python files
48    MODPATH := $(shell python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib(prefix="$(INSTALLPREFIX)"))')
49    
50  _rpm := $(_rpmbuild) --quiet  _rpm := $(_rpmbuild) --quiet
51  ifneq ($(RPM_VERB),)  ifneq ($(RPM_VERB),)
# Line 238  install: configure Line 240  install: configure
240          #          #
241    
242  ifdef MYMODS  ifdef MYMODS
243          @mkdir -p $(INSTALLPREFIX)/$(MODSUFFIX)          @mkdir -p $(MODPATH)
244          for i in $(MYMODS) ; do \          for i in $(MYMODS) ; do \
245                  install -m 0444 $$i $(INSTALLPREFIX)/$(MODSUFFIX) ; \                  install -m 0444 $$i $(MODPATH) ; \
246          done || :          done || :
247  endif  endif
248    

Legend:
Removed from v.2259  
changed lines
  Added in v.2260

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28