/[pdpsoft]/nl.nikhef.pdp.dynsched/trunk/Makefile
ViewVC logotype

Diff of /nl.nikhef.pdp.dynsched/trunk/Makefile

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

revision 2293 by templon, Fri Oct 8 12:28:45 2010 UTC revision 2294 by templon, Mon May 23 10:06:06 2011 UTC
# Line 1  Line 1 
1  #  #
2  # $Id: Makefile 1993 2010-10-08 10:12:18Z templon $  # $Id: Makefile 2267 2011-04-05 13:52:24Z templon $
3  # Version: $Rev: 1993 $  # Version: $Rev: 1993 $
4  # LastMod: $Date: 2010-10-08 12:12:18 +0200 (Fri, 08 Oct 2010) $  # LastMod: $Date: 2010-10-08 12:12:18 +0200 (Fri, 08 Oct 2010) $
5  # Source:  $URL: svn+ssh://svn@ndpfsvn.nikhef.nl/repos/pdpsoft/nl.nikhef.pdp.lrms-py-generic/branches/RB-1.0.0/Makefile $  # Source:  $URL: svn+ssh://svn@ndpfsvn.nikhef.nl/repos/pdpsoft/nl.nikhef.pdp.dynsched-pbs-plugin/trunk/Makefile $
6  #  #
7    
8  #######################################################  #######################################################
# Line 49  ifeq ($(INSTALLPREFIX),) Line 49  ifeq ($(INSTALLPREFIX),)
49          INSTALLPREFIX := $(TARGPREFIX)          INSTALLPREFIX := $(TARGPREFIX)
50  endif  endif
51    
52    # determine location for python files
53    MODPATH := $(shell python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib(prefix="$(INSTALLPREFIX)"))')
54  _rpm := $(_rpmbuild) --quiet  _rpm := $(_rpmbuild) --quiet
55  ifneq ($(RPM_VERB),)  ifneq ($(RPM_VERB),)
56          _rpm := $(_rpmbuild)          _rpm := $(_rpmbuild)
# Line 58  endif Line 59  endif
59  _os        := $(shell uname -s)  _os        := $(shell uname -s)
60  _date      := $(shell date '+%d/%m/%y %H:%M')  _date      := $(shell date '+%d/%m/%y %H:%M')
61    
62    dv:
63            @echo ${INSTALLPREFIX}
64            @echo ${MODPATH}
65    
66  ###############################################################################  ###############################################################################
67  # Macros  # Macros
68  ###############################################################################  ###############################################################################
# Line 109  release: Line 114  release:
114          @echo 'svn copy -m "Creating Release Branch x.y.z" ${_SVN_ROOT_PATH}/${PROJECT}/trunk ${_SVN_ROOT_PATH}/${PROJECT}/branches/RB-x.y.z'          @echo 'svn copy -m "Creating Release Branch x.y.z" ${_SVN_ROOT_PATH}/${PROJECT}/trunk ${_SVN_ROOT_PATH}/${PROJECT}/branches/RB-x.y.z'
115          @echo 'then to work on this branch, do the following command:'          @echo 'then to work on this branch, do the following command:'
116          @echo 'svn switch ${_SVN_ROOT_PATH}/branches/RB-x.y.z'          @echo 'svn switch ${_SVN_ROOT_PATH}/branches/RB-x.y.z'
117            @echo 'when done, make a tag:'
118            @echo 'svn copy -m "Tagging release x.y.z" ${_SVN_ROOT_PATH}/${PROJECT}/branches/RB-x.y.z ${_SVN_ROOT_PATH}/${PROJECT}/tags/REL-x.y.z'
119            @echo 'then finally merge the changes back into the trunk except when not relevant:'
120            @echo 'svn switch ${_SVN_ROOT_PATH}/${PROJECT}/trunk'
121            @echo 'svn merge  ${_SVN_ROOT_PATH}/${PROJECT}/trunk ${_SVN_ROOT_PATH}/${PROJECT}/tags/REL-x.y.z'
122            @echo 'svn ci -m "Merge release x.y.z changes back into trunk"'
123    
124  config.tmp: $(CFG_MK)  config.tmp: $(CFG_MK)
125          @sed <$(CFG_MK) >config.tmp '/^DATE=/d'          @sed <$(CFG_MK) >config.tmp '/^DATE=/d'
# Line 243  install: configure Line 254  install: configure
254          #          #
255    
256  ifdef MYMODS  ifdef MYMODS
257          @mkdir -p $(INSTALLPREFIX)/$(MODSUFFIX)          @mkdir -p $(MODPATH)
258          for i in $(MYMODS) ; do \          for i in $(MYMODS) ; do \
259                  install -m 0444 $$i $(INSTALLPREFIX)/$(MODSUFFIX) ; \                  install -m 0444 $$i $(MODPATH) ; \
260          done || :          done || :
261  endif  endif
262    

Legend:
Removed from v.2293  
changed lines
  Added in v.2294

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