-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
73 lines (58 loc) · 1.7 KB
/
Makefile.in
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#
# NetrekII: Paradise Client Makefile
#
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
datadir=@datadir@
mandir=@mandir@
@SET_MAKE@
INSTALL=@INSTALL@
INSTALL_DATA=@INSTALL_DATA@
SHIP_BITMAP_PATH=@SHIP_BITMAP_PATH@
all:
(cd src && $(MAKE))
sed -e "s,@MAN_SHIP_BITMAP_PATH@,${SHIP_BITMAP_PATH},g" docs/paradise.1.in > docs/paradise.1
install: all
-mkdir $(prefix)
-mkdir $(exec_prefix)
-mkdir $(bindir)
-mkdir $(datadir)
-mkdir $(mandir)
-mkdir $(mandir)/man1
$(INSTALL) src/netrek.paradise $(bindir)/paradise
# make image directory hierarchy
-mkdir $(datadir)/paradise
-mkdir $(datadir)/paradise/images
-for i in Fed Kli Ori Rom; do \
mkdir $(datadir)/paradise/images/$$i; \
mkdir $(datadir)/paradise/images/$$i.bronco; \
mkdir $(datadir)/paradise/images/$$i.colored; \
mkdir $(datadir)/paradise/images/$$i.bronco.colored; \
done
-mkdir $(datadir)/paradise/images/planets
-mkdir $(datadir)/paradise/images/planets/asteroids
-for i in A F R S T; do \
mkdir $(datadir)/paradise/images/planets/$$i; \
mkdir $(datadir)/paradise/images/planets/$${i}_overlay; \
done
-for i in weapons newstats intro Ind; do \
mkdir $(datadir)/paradise/images/$$i; \
done
# cheat on installing the images
for i in `find images -name \*.x\[bp\]m -print`; do \
$(INSTALL_DATA) $$i $(datadir)/paradise/$$i; \
done
# install the man page
$(INSTALL_DATA) docs/paradise.1 $(mandir)/man1/paradise.1
static_images:
(cd src && $(MAKE) static_images)
dynamic_images:
(cd src && $(MAKE) dynamic_images)
unused_images:
(cd src && $(MAKE) unused_images)
clean:
(cd src && $(MAKE) clean)
distclean: clean
(cd src && $(MAKE) distclean)
-rm -f Makefile config.* include/config.h docs/paradise.1