-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (40 loc) · 1.28 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
ARCHIVE=zilverter.zip
DOCS = README.txt LICENSE LICENSE.xerces LICENSE.jdom
JARS = jdom.jar xalan.jar xercesImpl.jar xmlParserAPIs.jar
SAMPLES = samples
SCRIPTS = zilverter.sh zilverter.bat xform.sh xform.bat
CP=.:jdom.jar
what:
@echo ""
@echo "Make what?"
@echo ""
@echo "build - compile the Java code"
@echo "distrib - create JAR file of runtime files for distribution"
@echo ""
@echo "testa - run the zilverter code on a test file A"
@echo "testb - run the zilverter code on a test file B"
@echo "testc - run the zilverter code on a test file C"
@echo "testd - run the zilverter code on a test file D"
@echo ""
@echo "clean - remove all editor file"
@echo "runclean - remove all editor, XML & CSV files"
@echo "distclean - remove all editor, XML & CSV, and class files"
@echo ""
build:
javac -d . -classpath $(CP) ZilVerter.java
testa:
@java -cp $(CP) ZilVerter $(SAMPLES)/catprod3_a_herc.zil
testb:
@java -cp $(CP) ZilVerter $(SAMPLES)/catprod3_b_herc.zil
testc:
@java -cp $(CP) ZilVerter $(SAMPLES)/A0025.zil
testd:
@java -cp $(CP) ZilVerter $(SAMPLES)/A1293.zil
distrib: build
zip $(ARCHIVE) ZilVerter.class $(JARS) $(DOCS) $(SCRIPTS) $(SAMPLES)/*
distclean: clean runclean
rm -f *.class $(ARCHIVE)
clean:
rm -f *.~1~ *.~2~ *.~3~ *.~4~
runclean:
rm -f *.csv *.xml