Ignore:
Timestamp:
May 7, 2007, 9:18:49 AM (16 years ago)
Author:
Peter Johansson
Message:

initial check-in of PLIER refs #45

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/se/lu/thep/affymetrix/Makefile

    r192 r266  
    33# ======================================================================
    44# Copyright (C) 2006 Jari Häkkinen
     5# Copyright (C) 2007 Peter Johansson
    56#
    67# This file is part of RMAExpress plug-in for BASE,
     
    4647# 'make dist' with optional BASEROOT or BASECORE will create binary
    4748# 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.
    5350#
    5451
    55 VERSION = 0.5
     52VERSION = pre0.6
     53
     54SRCDIR = .src
     55TOPDIR = ../../../..
    5656
    5757# Prefix for where to install the plug-in. This is normally the path
     
    6767PLUGINDIR ?= $(BASEROOT)/$(RELPLUGINDIR)
    6868
    69 JAR  = RMAExpress.jar
     69JAVA = RMAExpress.java Plier.java
     70CLASS = $(JAVA:.java=.class)
     71JAR  = affymetrix.jar
    7072
    7173# Files to include in binary distributions
    72 BINDISTFILES = AUTHORS ChangeLog COPYING INSTALL Makefile README RMAExpress.jar
     74BINDISTFILES = AUTHORS ChangeLog COPYING INSTALL Makefile README $(JAR)
    7375# Binary package name
    74 BINPACKAGEFILE = base_rmaexpress_plugin-$(VERSION)
     76BINPACKAGEFILE = base_affymetrix_plugin-$(VERSION)
    7577# Files to include in binary distributions
    76 SRCDISTFILES = AUTHORS ChangeLog COPYING INSTALL Makefile README RMAExpress.java
     78SRCDISTFILES = AUTHORS ChangeLog COPYING INSTALL Makefile README $(JAVA)
    7779# Binary package name
    78 SRCPACKAGEFILE = base_rmaexpress_plugin-$(VERSION)-src
     80SRCPACKAGEFILE = $(BINPACKAGEFILE)-src
    7981
    80 all: $(JAR)
     82all: $(SRCDIR) $(JAR)
    8183
    82 clean:; @(rm -rf $(JAR) *.class *~ \
     84clean:; @(rm -rf *.jar *.class *~ $(SRCDIR)\
    8385  $(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 ) 
    8587
    86 dist: clean versionfix $(JAR) versionunfix
     88dist: clean $(JAR)
    8789  @echo Creating dist files
    8890  @mkdir $(BINPACKAGEFILE)
     
    9597  @md5sum $(SRCPACKAGEFILE).tar.gz > $(SRCPACKAGEFILE).tar.gz.MD5
    9698
    97 .PHONY: install
    98 install: $(JAR)
    99   mkdirhier $(PLUGINDIR)
    100   cp -p RMAExpress.jar $(PLUGINDIR)
     99.PHONY: all clean dist install install-precompiled
     100
     101install: $(JAR) install-precompiled
    101102
    102103install-precompiled:
    103   mkdirhier $(PLUGINDIR)
    104   cp -p RMAExpress.jar $(PLUGINDIR)
     104  @install -d $(PLUGINDIR)
     105  install -p $(JAR) $(PLUGINDIR)
    105106
    106 $(JAR): RMAExpress.class
     107$(JAR): $(CLASS)
    107108  @echo Creating $(JAR)
    108   @( cd ../../../.. ; \
     109  @( cd $(TOPDIR) ; \
    109110    jar cf se/lu/thep/affymetrix/$(JAR) se/lu/thep/affymetrix/*.class )
    110111
    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  "$<" > "$@"; \
    115115
    116 versionunfix:
    117   @mv RMAExpress.java_orig RMAExpress.java
     116%.class: $(SRCDIR)/%.java
     117  javac -cp $(BASECORE) -d $(TOPDIR) $<
    118118
    119 %.class: %.java
    120   @javac -cp $(BASECORE) $<
     119$(SRCDIR):
     120  mkdir $@
Note: See TracChangeset for help on using the changeset viewer.