home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 July / Chip_1998-07_cd.bin / zkuste / JBuilder / BDK / Win / bdk_sep97.exe / _SETUP.1 / molecule.mk < prev    next >
Encoding:
Makefile  |  1997-09-10  |  776 b   |  35 lines

  1. # The makefile for the world's simplest Java bean.
  2.  
  3. CLASSFILES= \
  4.     sunw\demo\molecule\Atom.class \
  5.     sunw\demo\molecule\Matrix3D.class \
  6.     sunw\demo\molecule\Molecule.class \
  7.     sunw\demo\molecule\MoleculeNameEditor.class \
  8.     sunw\demo\molecule\MoleculeBeanInfo.class \
  9.     sunw\demo\molecule\XYZChemModel.class
  10.  
  11. DATAFILES=
  12.  
  13. JARFILE= ..\jars\molecule.jar
  14.  
  15. all: $(JARFILE)
  16.  
  17. # Create a JAR file with a suitable manifest.
  18.  
  19. $(JARFILE): $(CLASSFILES) $(DATAFILES)
  20.     jar cfm $(JARFILE) <<manifest.tmp sunw\demo\molecule\*.class sunw\demo\molecule\*.xyz $(DATAFILES)
  21. Name: sunw/demo/molecule/Molecule.class
  22. Java-Bean: True
  23. <<
  24.  
  25. .SUFFIXES: .java .class
  26.  
  27. {sunw\demo\molecule}.java{sunw\demo\molecule}.class :
  28.     set CLASSPATH=.
  29.     javac $<
  30.  
  31. clean:
  32.     -del sunw\demo\molecule\*.class
  33.     -del $(JARFILE)
  34.  
  35.