Changeset 266 for trunk/se/lu/thep/affymetrix/Makefile
- Timestamp:
- May 7, 2007, 9:18:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/se/lu/thep/affymetrix/Makefile
r192 r266 3 3 # ====================================================================== 4 4 # Copyright (C) 2006 Jari Häkkinen 5 # Copyright (C) 2007 Peter Johansson 5 6 # 6 7 # This file is part of RMAExpress plug-in for BASE, … … 46 47 # 'make dist' with optional BASEROOT or BASECORE will create binary 47 48 # distribution and source distribution packages with corresponding 48 # md5sum files. NOTE if make dist fails you MUST do 'make 49 # versionunfix' to recover the RMAExpress.java to its previous 50 # state. If you fail to do this, the java file will become slightly 51 # corrupt. This is because 'make dist' will actually use 'sed' to 52 # replace strings in the source with the version number below. 49 # md5sum files. 53 50 # 54 51 55 VERSION = 0.5 52 VERSION = pre0.6 53 54 SRCDIR = .src 55 TOPDIR = ../../../.. 56 56 57 57 # Prefix for where to install the plug-in. This is normally the path … … 67 67 PLUGINDIR ?= $(BASEROOT)/$(RELPLUGINDIR) 68 68 69 JAR = RMAExpress.jar 69 JAVA = RMAExpress.java Plier.java 70 CLASS = $(JAVA:.java=.class) 71 JAR = affymetrix.jar 70 72 71 73 # Files to include in binary distributions 72 BINDISTFILES = AUTHORS ChangeLog COPYING INSTALL Makefile README RMAExpress.jar74 BINDISTFILES = AUTHORS ChangeLog COPYING INSTALL Makefile README $(JAR) 73 75 # Binary package name 74 BINPACKAGEFILE = base_ rmaexpress_plugin-$(VERSION)76 BINPACKAGEFILE = base_affymetrix_plugin-$(VERSION) 75 77 # Files to include in binary distributions 76 SRCDISTFILES = AUTHORS ChangeLog COPYING INSTALL Makefile README RMAExpress.java78 SRCDISTFILES = AUTHORS ChangeLog COPYING INSTALL Makefile README $(JAVA) 77 79 # Binary package name 78 SRCPACKAGEFILE = base_rmaexpress_plugin-$(VERSION)-src80 SRCPACKAGEFILE = $(BINPACKAGEFILE)-src 79 81 80 all: $( JAR)82 all: $(SRCDIR) $(JAR) 81 83 82 clean:; @(rm -rf $(JAR) *.class *~\84 clean:; @(rm -rf *.jar *.class *~ $(SRCDIR)\ 83 85 $(BINPACKAGEFILE) $(BINPACKAGEFILE).tar.gz $(BINPACKAGEFILE).tar.gz.MD5 \ 84 $(SRCPACKAGEFILE) $(SRCPACKAGEFILE).tar.gz $(SRCPACKAGEFILE).tar.gz.MD5 ) 86 $(SRCPACKAGEFILE) $(SRCPACKAGEFILE).tar.gz $(SRCPACKAGEFILE).tar.gz.MD5 ) 85 87 86 dist: clean versionfix $(JAR) versionunfix88 dist: clean $(JAR) 87 89 @echo Creating dist files 88 90 @mkdir $(BINPACKAGEFILE) … … 95 97 @md5sum $(SRCPACKAGEFILE).tar.gz > $(SRCPACKAGEFILE).tar.gz.MD5 96 98 97 .PHONY: install 98 install: $(JAR) 99 mkdirhier $(PLUGINDIR) 100 cp -p RMAExpress.jar $(PLUGINDIR) 99 .PHONY: all clean dist install install-precompiled 100 101 install: $(JAR) install-precompiled 101 102 102 103 install-precompiled: 103 mkdirhier$(PLUGINDIR)104 cp -p RMAExpress.jar$(PLUGINDIR)104 @install -d $(PLUGINDIR) 105 install -p $(JAR) $(PLUGINDIR) 105 106 106 $(JAR): RMAExpress.class107 $(JAR): $(CLASS) 107 108 @echo Creating $(JAR) 108 @( cd ../../../..; \109 @( cd $(TOPDIR) ; \ 109 110 jar cf se/lu/thep/affymetrix/$(JAR) se/lu/thep/affymetrix/*.class ) 110 111 111 versionfix:; 112 @mv RMAExpress.java RMAExpress.java_orig 113 @sed ''s/MAKESUBSTOFVERSIONNUMBER/$(VERSION)/'' \ 114 RMAExpress.java_orig > RMAExpress.java 112 $(SRCDIR)/%.java: %.java Makefile 113 @sed -e 's/@version.*/@version $(VERSION)/' \ 114 "$<" > "$@"; \ 115 115 116 versionunfix: 117 @mv RMAExpress.java_orig RMAExpress.java116 %.class: $(SRCDIR)/%.java 117 javac -cp $(BASECORE) -d $(TOPDIR) $< 118 118 119 %.class: %.java 120 @javac -cp $(BASECORE) $<119 $(SRCDIR): 120 mkdir $@
Note: See TracChangeset
for help on using the changeset viewer.