home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 July / Chip_1998-07_cd.bin / zkuste / JBuilder / BDK / Win / bdk_sep97.exe / _SETUP.1 / jelly.gmk < prev    next >
Encoding:
Text File  |  1997-09-10  |  787 b   |  34 lines

  1.  
  2. # The makefile for the world's simplests Java bean.
  3.  
  4. CLASSFILES= \
  5.     sunw/demo/jelly/JellyBean.class \
  6.     sunw/demo/jelly/JellyBeanBeanInfo.class
  7.  
  8. DATAFILES= \
  9.     sunw/demo/jelly/JellyBeanIconColor16.gif \
  10.     sunw/demo/jelly/JellyBeanIconColor32.gif \
  11.     sunw/demo/jelly/JellyBeanIconMono16.gif \
  12.     sunw/demo/jelly/JellyBeanIconMono32.gif
  13.  
  14. JARFILE= ../jars/jelly.jar
  15.  
  16. all: $(JARFILE)
  17.  
  18. # Create a JAR file with a suitable manifest.
  19.  
  20. $(JARFILE): $(CLASSFILES) $(DATAFILES)
  21.     echo "Name: sunw/demo/jelly/JellyBean.class" >> manifest.tmp
  22.     echo "Java-Bean: True" >> manifest.tmp
  23.     jar cfm $(JARFILE) manifest.tmp sunw/demo/jelly/*.class $(DATAFILES)
  24.     @/bin/rm manifest.tmp
  25.  
  26. %.class: %.java
  27.     export CLASSPATH; CLASSPATH=. ; \
  28.     javac $<
  29.  
  30. clean:
  31.     /bin/rm -f sunw/demo/jelly/*.class
  32.     /bin/rm -f $(JARFILE)
  33.  
  34.