-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
37 lines (30 loc) · 1.05 KB
/
makefile
File metadata and controls
37 lines (30 loc) · 1.05 KB
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
# jay
d = src conflict yydebug java # cs
dist = doc-files/jay-mosx.tgz doc-files/src.zip \
doc-files/jay-win.zip
dist:: doc-files/src.zip
doc-files/src.zip:
$(MAKE) distclean
# cd .. && find jay -type f -not -name .DS_Store | \
# grep -v 'src/jay.*\.exe' | zip -@9 jay/$@
all clean dist distclean test::
for d in $d; do \
echo; echo ' ----- jay/'$$d; echo; \
( cd $$d && $(MAKE) $@ ) done
clean:: ; rm -f $(dist)
dist:: doc-files/jay-mosx.tgz doc-files/jay-win.zip
distclean:: ; rm -f $(dist)
doc-files/jay-mosx.tgz: cs/skeleton.cs cs/yyDebug.cs \
java/skeleton.* src/jay yydebug/yydebug.jar
cd src && tar cfv ../$(@:.tgz=.tar) jay
tar rfv $(@:.tgz=.tar) cs/skeleton.cs cs/yyDebug.cs \
java/skeleton.*
cd yydebug && tar rfv ../$(@:.tgz=.tar) yydebug.jar
gzip -c9 < $(@:.tgz=.tar) > $@
rm $(@:.tgz=.tar)
doc-files/jay-win.zip: cs/skeleton.cs cs/yyDebug.cs \
java/skeleton.* src/jay*.exe yydebug/yydebug.jar
rm -f $@
cd src && zip -9 ../$@ jay*.exe
zip -9 $@ cs/skeleton.cs cs/yyDebug.cs java/skeleton.*
cd yydebug && zip -9 ../$@ yydebug.jar