-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (39 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
SOURCEDIRS = automata file grammar gui regular pumping debug
APACHE = org
AUX = DOCS ICON MEDIA Makefile mainFile README LICENSE ChangeLog.txt JFLAP.class
all: source-included ws two-jar
rm build
source-included: build
find $(SOURCEDIRS) -name "*.class" -o -name "*.java" > OUTYOUTY
jar cmf mainFile JFLAP_With_Source.jar @OUTYOUTY $(AUX) $(APACHE)
rm OUTYOUTY
without-source ws: build
find $(SOURCEDIRS) -name "*.class" > OUTYOUTY
jar cmf mainFile JFLAP.jar @OUTYOUTY $(AUX) $(APACHE)
rm OUTYOUTY
two-jar: build
find $(SOURCEDIRS) -name "*.class" > OUTYOUTY
jar cmf mainFile JFLAP_Thin.jar @OUTYOUTY $(AUX)
rm OUTYOUTY
jar cf svg.jar org
build:
find . -name "*.java" | xargs javac
# find $(SOURCEDIRS) -name "*.java" | xargs javac
touch build
################################################################################
#jar:
# find . -name "*.class" -o -name "*.java" > OUTYOUTY
# jar cmf mainFile JFLAP_With_Source.jar @OUTYOUTY $(AUX)
# rm OUTYOUTY
#
#jar-ws:
# find . -name "*.class" > OUTYOUTY
# jar cmf mainFile JFLAP.jar @OUTYOUTY $(AUX)
# rm OUTYOUTY
################################################################################
clean:
find $(SOURCEDIRS) \( -name "*.class" -o -name "*~" -o -name ".DS_Store" \) \
-a -delete
rm -f JFLAP.jar
rm -f build
rm -f