File: Makefile.am

package info (click to toggle)
dxsamples 4.4.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 26,340 kB
  • sloc: ansic: 10,079; sh: 8,445; java: 1,772; makefile: 1,102
file content (44 lines) | stat: -rw-r--r-- 1,410 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
javaclassdir = $(DXINST)/java/htmlpages
javaclass_DATA = samples.jar
EXTRA_DIST = $(JAVA_FILES) $(WRL_USERS)

CLEANFILES = samples.jar

CLASSPATH = @DX_JAVA_CLASSPATH@:@DX_JAR@:./
export CLASSPATH

# WRL_CLASSPATH may have been set, but WRLApplication may not have been built
#  so do additional test for WRLApplication in dx.jar archive prior to building
#  wrl-dependent samples


$(JAVA_CLASSES): %.class: %.java
	$(JAVAC) $<

samples.jar: $(JAVA_CLASSES)
# dave, your version 1.5 loop on JAVA_FILES is better 
#  than maintaining a list of JAVA_CLASSES
# but maybe someone can come up with a rule to build them (like above)
#  rather than a loop. --pete
# whoever does, please delete these comments!
	if test -n "`$(JAR) -tf $(DX_JAR) 2>&1 | grep WRLApplication`" ; then \
	   $(JAVAC) $(WRL_USERS); \
	fi ;
	$(JAR) cf samples.jar *.class


WRL_USERS = ThunderGlyphSheet.java Navigation.java

JAVA_FILES = AutoInsurance.java CCNet2.java GroceryList.java \
	HomeOwn.java MRI_2.java MutualFund.java  ScatterData.java \
	Streamline.java Topo.java ddi.java gordon.java hedge.java \
	ibmqw.java npvcall.java optval.java wacc.java


JAVA_CLASSES = AutoInsurance.class CCNet2.class GroceryList.class \
	HomeOwn.class MRI_2.class MutualFund.class  ScatterData.class \
	Streamline.class Topo.class ddi.class gordon.class hedge.class \
	ibmqw.class npvcall.class optval.class wacc.class

clean-local:
	rm -f *.class