forked from shmup/wander
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·45 lines (32 loc) · 879 Bytes
/
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
DOCS = Wander.txt WanderExportReadMe.txt WanderMisc.txt WanderWrld.txt
DOT_CS = wand1.c wand2.c wandglb.c wandsys.c
DOT_OS = wand1.o wand2.o wandglb.o wandsys.o
A3 = a3.misc a3.wrld
CASTLE = castle.misc castle.wrld
LIBRARY = library.misc library.wrld
TUT = tut.misc tut.wrld
EXPORT = Makefile $(DOCS) wanddef.h $(DOT_CS) $(A3) $(CASTLE) $(LIBRARY) $(TUT)
default: wander
clean:
rm $(DOT_OS) $(DOCS)
docs: $(DOCS)
ls -l $(DOCS)
export: $(EXPORT)
ls -l $(EXPORT)
tar -czf Wander.tgz $(EXPORT)
ls -l Wander.tgz
wander: Wander
Wander: $(DOT_OS)
$(CC) $(DOT_OS) -o $@
wand1.o: wand1.c wanddef.h
wand2.o: wand2.c wanddef.h
wandglb.o: wandglb.c wanddef.h
wandsys.o: wandsys.c wanddef.h
Wander.txt: wander.nr mac
nroff wander.nr >$@
WanderExportReadMe.txt:
cp $? $@
WanderMisc.txt: misc.nr mac
nroff misc.nr >$@
WanderWrld.txt: wrld.nr mac
nroff WanderWrld.nr >$@