-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
54 lines (40 loc) · 1.16 KB
/
Makefile
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
45
46
47
48
49
50
51
52
53
54
# Makefile for jGL Examples
# jGL 3D Graphics Library for Java
# Version: 2.4
# Copyright (C) 1996-2001 Robin Bing-Yu Chen
### Local Setting ###
LOCALCLASSPATH = jgl.jar
# LOCALCLASSPATH = jgl.jar:$(CLASSPATH)
BACKUPDIR = Example_BAK
FILES = bezcurve bezmesh bezsurf checker clip colormat cube doublebuffer \
light lines list material mipmap model movelight pickdepth \
picksquare planet polys robot select simple smooth stroke surface \
tea teapots texgen texturesurf
# drawf
### RULES ###
.SUFFIXES: .java
.java:
@echo "Compile" $< "and Convert" $*.html
@$(JAVAC) $(FLAGS) -classpath $(LOCALCLASSPATH) $<
@$(CP) $*.html $*-pi.html
@$(HTMLCONV) $*-pi.html
# @$(RM) converter.props
# @$(JAVA) -jar $(HTMLCONV) $*.html -backup $(BACKUPDIR) -progress false
# @$(MV) $*.html $*-pi.html
# @$(MV) $(BACKUPDIR)/$*.html .
### TARGETS ###
all: jgl.jar $(FILES)
@$(RM) converter.props
# @$(RM) convertlog.txt
@cd .. ; $(RM) $(BACKUPDIR)
@echo "Compile Examples of jGL ok."
jgl.jar:
@cd ..; $(MAKE) update
clean:
@$(RM) jgl.jar
@$(RM) *.class core
@$(RM) *-pi.html
@$(RM) converter.props
# @$(RM) convertlog.txt
@cd .. ; $(RM) $(BACKUPDIR)
include Make-config