/[pdpsoft]/trunk/nl.nikhef.ndpf.tools/nikhef-apel/Makefile
ViewVC logotype

Diff of /trunk/nl.nikhef.ndpf.tools/nikhef-apel/Makefile

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

revision 2120 by davidg, Tue Nov 23 14:28:02 2010 UTC revision 2121 by davidg, Fri Dec 24 10:54:00 2010 UTC
# Line 35  _vtag      = $(subst -,_,$(subst .,_,$(_ Line 35  _vtag      = $(subst -,_,$(subst .,_,$(_
35  _prodname  = $(NAME)-$(VERSION)$(BRANCH)  _prodname  = $(NAME)-$(VERSION)$(BRANCH)
36  _prodtar   = $(_prodname).src.tgz  _prodtar   = $(_prodname).src.tgz
37    
38    JAVAC = /usr/lib/jvm/java/bin/javac
39    
40    SOURCES = ApelTool.java  CommandLineSupport.java
41    
42    CLASSPATH  = .:./activation-1.1.jar:./activemq-console-5.4.1.jar:./activemq-core-5.4.1.jar:./activemq-jaas-5.4.1.jar:./activemq-protobuf-1.1.jar:./activemq-web-5.4.1.jar:./commons-logging-1.1.jar:./geronimo-j2ee-management_1.1_spec-1.0.1.jar:./geronimo-jms_1.1_spec-1.1.1.jar
43    
44    
45    
46    
47  ###################################################################  ###################################################################
48  # Create linux specific build directories  # Create linux specific build directories
# Line 59  $(_rpmdir): Line 67  $(_rpmdir):
67    
68  release: config.tmp  release: config.tmp
69          @echo 'increasing release number x.x.<X> and timestamp..'          @echo 'increasing release number x.x.<X> and timestamp..'
70          @perl <config.tmp >config.mk -e 'while (<>) \          @perl <config.tmp >config.mk -e 'while (<>) { s/^(VERSION=\d+\.\d+\.)(\d+)(.*)$$/$$1.($$2+1).$$3/e; s/^(RELEASE=)(\d+)(.*)$$/$$1."1".$$3/e; print; }'
           { s/^(VERSION=\d+\.\d+\.)(\d+)(.*)$$/$$1.($$2+1).$$3/e; \  
             s/^(RELEASE=)(\d+)(.*)$$/$$1."1".$$3/e; print; }'  
71          @$(MAKE) tagversion          @$(MAKE) tagversion
72    
73  minorversion: config.tmp  minorversion: config.tmp
74          @echo 'increasing minorversion number x.<X>.x and timestamp..'          @echo 'increasing minorversion number x.<X>.x and timestamp..'
75          @perl <config.tmp >config.mk -e 'while (<>) \          @perl <config.tmp >config.mk -e 'while (<>) { s/^(VERSION=\d+\.)(\d+)(\..*)$$/$$1.($$2+1).".0"/e; s/^(RELEASE=)(\d+)(.*)$$/$$1."1".$$3/e; print; }'
           { s/^(VERSION=\d+\.)(\d+)(\..*)$$/$$1.($$2+1).".0"/e; \  
             s/^(RELEASE=)(\d+)(.*)$$/$$1."1".$$3/e; print; }'  
76          @$(MAKE) tagversion          @$(MAKE) tagversion
77    
78  majorversion: config.tmp  majorversion: config.tmp
# Line 211  config.sh: Makefile $(_test_dep) Line 215  config.sh: Makefile $(_test_dep)
215          @echo include config.mk >>makefile.tmp          @echo include config.mk >>makefile.tmp
216          @echo dumpvars: >>makefile.tmp          @echo dumpvars: >>makefile.tmp
217          @cat config.mk | \          @cat config.mk | \
218           perl >>makefile.tmp -e ' \           perl >>makefile.tmp -e ' my $$fmt = "\t\@echo \"-e \\\"s\@%s\@\$$(%s)g\\\" \\\\\"" ; while (<>) { $$v{$$1}=1 if /^([A-Za-z0-9_]+)\s*:?=.*$$/; } map { printf "$$fmt >>config.sh\n", $$_, $$_; } sort(keys(%v)); print "\n"; '
           my $$fmt = "\t\@echo \"-e \\\"s\@%s\@\$$(%s)g\\\" \\\\\"" ; \  
           while (<>) { $$v{$$1}=1 if /^([A-Za-z0-9_]+)\s*:?=.*$$/; } \  
           map { printf "$$fmt >>config.sh\n", $$_, $$_; } sort(keys(%v)); \  
           print "\n"; \  
          '  
219          @echo '#!/bin/sh' >config.sh          @echo '#!/bin/sh' >config.sh
220          @echo 'sed \' >>config.sh          @echo 'sed \' >>config.sh
221          @$(MAKE) -f makefile.tmp dumpvars >/dev/null          @$(MAKE) -f makefile.tmp dumpvars >/dev/null
# Line 237  config.sh: Makefile $(_test_dep) Line 236  config.sh: Makefile $(_test_dep)
236          @echo creating $@ ...          @echo creating $@ ...
237          @./config.sh <$< >$@ ; chmod oug-w $@          @./config.sh <$< >$@ ; chmod oug-w $@
238    
239    ApelTool.class: ApelTool.java
240            $(JAVAC) -cp $(CLASSPATH) $<
241    
242    CommandLineSupport.class: CommandLineSupport.java
243            $(JAVAC) -cp $(CLASSPATH) $<
244    
245  configure: $(shell find . -name \*\.cin 2>/dev/null | sed -e 's/.cin//' || echo)  configure: $(shell find . -name \*\.cin 2>/dev/null | sed -e 's/.cin//' || echo)
246    
247  default-install:  default-install:
# Line 255  default-install: Line 260  default-install:
260  # Install  # Install
261  ####################################################################  ####################################################################
262    
263  install: configure default-install  install: configure default-install ApelTool.class CommandLineSupport.class
264          @echo installing in $(PREFIX) ...          @echo installing in $(PREFIX) ...
265          #          #
266          # MODIFY location of installed scripts/binaries here          # MODIFY location of installed scripts/binaries here
267          #          #
268          @mkdir -p $(PREFIX)/$(BINDIR)          @mkdir -p $(PREFIX)/$(BINDIR)
269          install -m 0755 lvrasize $(PREFIX)/$(BINDIR)/lvrasize          @mkdir -p $(PREFIX)/$(EXECDIR)
270            install -m 0644 activation-1.1.jar $(PREFIX)/$(EXECDIR)/activation-1.1.jar
271            install -m 0644 activemq-camel-5.4.1.jar $(PREFIX)/$(EXECDIR)/activemq-camel-5.4.1.jar
272            install -m 0644 activemq-console-5.4.1.jar $(PREFIX)/$(EXECDIR)/activemq-console-5.4.1.jar
273            install -m 0644 activemq-core-5.4.1.jar $(PREFIX)/$(EXECDIR)/activemq-core-5.4.1.jar
274            install -m 0644 activemq-jaas-5.4.1.jar $(PREFIX)/$(EXECDIR)/activemq-jaas-5.4.1.jar
275            install -m 0644 activemq-protobuf-1.1.jar $(PREFIX)/$(EXECDIR)/activemq-protobuf-1.1.jar
276            install -m 0644 activemq-web-5.4.1.jar $(PREFIX)/$(EXECDIR)/activemq-web-5.4.1.jar
277            install -m 0644 commons-logging-1.1.jar $(PREFIX)/$(EXECDIR)/commons-logging-1.1.jar
278            install -m 0644 geronimo-j2ee-management_1.1_spec-1.0.1.jar $(PREFIX)/$(EXECDIR)/geronimo-j2ee-management_1.1_spec-1.0.1.jar
279            install -m 0644 geronimo-jms_1.1_spec-1.1.1.jar $(PREFIX)/$(EXECDIR)/geronimo-jms_1.1_spec-1.1.1.jar
280    
281            install -m 0644 ApelTool.class $(PREFIX)/$(EXECDIR)/ApelTool.class
282            install -m 0644 CommandLineSupport.class $(PREFIX)/$(EXECDIR)/CommandLineSupport.class
283            install -m 0644 apel.jks $(PREFIX)/$(EXECDIR)/apel.jks
284            install -m 0755 nikhef-apel $(PREFIX)/$(BINDIR)/nikhef-apel
285    
286  ####################################################################  ####################################################################
287    

Legend:
Removed from v.2120  
changed lines
  Added in v.2121

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