Changeset 291


Ignore:
Timestamp:
May 23, 2007, 11:25:24 AM (16 years ago)
Author:
Jari Häkkinen
Message:

Fixes #21.

File:
1 edited

Legend:

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

    r289 r291  
    33# ======================================================================
    44# Copyright (C) 2006 Jari Häkkinen
    5 # Copyright (C) 2007 Peter Johansson
     5# Copyright (C) 2007 Jari Häkkinen, Peter Johansson
    66#
    77# This file is part of RMAExpress plug-in for BASE,
     
    5252VERSION = pre0.6
    5353
    54 SRCDIR = .src
    55 TOPDIR = ../../../..
     54BUILDDIR = .build
    5655
    5756# Prefix for where to install the plug-in. This is normally the path
     
    8079SRCPACKAGEFILE = $(BINPACKAGEFILE)-src
    8180
    82 all: $(SRCDIR) $(JAR)
     81all: $(JAR)
    8382
    84 clean:; @(rm -rf *.jar *.class *~ $(SRCDIR)\
    85   $(BINPACKAGEFILE) $(BINPACKAGEFILE).tar.gz $(BINPACKAGEFILE).tar.gz.MD5 \
    86   $(SRCPACKAGEFILE) $(SRCPACKAGEFILE).tar.gz $(SRCPACKAGEFILE).tar.gz.MD5 )
     83clean:; @( rm -rf *.jar *.class *~ $(BUILDDIR) \
     84  $(BINPACKAGEFILE) $(BINPACKAGEFILE).tar.gz $(BINPACKAGEFILE).tar.gz.MD5 \
     85  $(SRCPACKAGEFILE) $(SRCPACKAGEFILE).tar.gz $(SRCPACKAGEFILE).tar.gz.MD5 )
    8786
    88 dist: clean all
     87dist: clean $(BINDISTFILES) $(SRCDISTFILES)
    8988  @echo Creating dist files
    9089  @mkdir $(BINPACKAGEFILE)
     
    9998.PHONY: all clean dist install install-precompiled
    10099
    101 install: all install-precompiled
     100install: install-precompiled
    102101
    103 install-precompiled:
     102install-precompiled: $(JAR)
    104103  @install -d $(PLUGINDIR)
    105104  install -p $(JAR) $(PLUGINDIR)
    106105
    107 $(JAR): $(CLASS)
     106$(JAR): $(BUILDDIR) $(CLASS)
    108107  @echo Creating $(JAR)
    109   @( cd $(TOPDIR) ; \
    110     jar cf se/lu/thep/affymetrix/$(JAR) se/lu/thep/affymetrix/*.class )
     108  @(cd $(BUILDDIR) ; mkdirhier se/lu/thep/affymetrix ; \
     109    cp -p *.class se/lu/thep/affymetrix ; \
     110    jar cf ../$(JAR) se/lu/thep/affymetrix/*.class)
    111111
    112 $(SRCDIR)/%.java: %.java Makefile
     112$(BUILDDIR)/%.java: %.java Makefile
    113113  @sed -e 's/@version.*/@version $(VERSION)/' \
    114114  "$<" > "$@"; \
    115115
    116 %.class: $(SRCDIR)/%.java
    117   javac -cp $(BASECORE) -d $(TOPDIR) $<
     116%.class: $(BUILDDIR)/%.java
     117  javac -cp $(BASECORE) $<
    118118
    119 $(SRCDIR):
     119$(BUILDDIR):
    120120  mkdir $@
Note: See TracChangeset for help on using the changeset viewer.