Use a MAKE fileTag(s): Environment


# jMAKEFILE  a MAKEFILE for JAVA development 
#            (Microsoft nMAKE)
# nmake /f j.makefile.mak doc 
#      to generate JAVADOC

.SUFFIXES: .class .java

JAVAHOME=c:\windev\jdk1.1.3
JAVAC= $(JAVAHOME)\bin\javac
PATH=$(JAVAHOME)\bin;$(PATH)
CLASSPATH=.;$(JAVAHOME)\lib\classes.zip;$(JSDKHOME)\lib\classes.zip
DEST=.
DOC=.
JAVA=$(JAVAHOME)\bin\java
JAVACFLAGS=-deprecation

.SUFFIXES: .java .class

.java.class:
    $(JAVAC) -classpath $(CLASSPATH) $(JAVACFLAGS) $<

CLASSFILES  = GetImage.class \
              myCanvas.class

SOURCEFILES = GetImage.java \
              myCanvas.java


# begin ---- JAR support ----------     
JARFILE= theJAR.jar     

$(JARFILE): $(CLASSFILES) $(SOURCEFILES)
        jar cfm0 $(JARFILE) <<manifest.tmp  $(CLASSFILES)
$(DATAFILES)
Name: GetImage.class
Java-Bean: False

Name: myCanvas.class
Java-Bean: True
<<
# end ---- JAR support ----------       

all : $(JARFILE) $(CLASSFILES) doc

doc : $(CLASSFILES)
    javadoc -version -author -d $(DOC) $(SOURCEFILES) 

install :
    copy $CLASSESFILE $(DEST)

clean:
    del $(CLASSFILES)

blog comments powered by Disqus