Lines 24-43
Link Here
|
24 |
|
24 |
|
25 |
# Global organisation (phony targets) |
25 |
# Global organisation (phony targets) |
26 |
|
26 |
|
27 |
.PHONY: install all script finish no_readline |
27 |
.PHONY: preinstall all finish no_readline |
28 |
.PHONY: math_functions binding_functions |
28 |
.PHONY: math_functions binding_functions |
29 |
|
29 |
|
30 |
# The first target makes everything to get an operational LiE program |
30 |
# The first target makes everything to get an operational LiE program |
31 |
install: all script INFO.a |
31 |
preinstall: all INFO.a |
|
|
32 |
|
33 |
install: |
34 |
install -d $(DESTDIR)/usr/bin |
35 |
install -d $(DESTDIR)/usr/lib/lie |
36 |
install Lie.exe $(DESTDIR)/usr/bin/Lie.exe |
37 |
install lie $(DESTDIR)/usr/bin/lie |
38 |
install -m 644 *.ind $(DESTDIR)/usr/lib/lie |
39 |
install -m 644 INFO.a $(DESTDIR)/usr/lib/lie |
40 |
install -m 644 INFO.* $(DESTDIR)/usr/lib/lie |
41 |
# install -d $(DESTDIR)/usr/share/doc/lie |
42 |
# install manual/manual.dvi $(DESTDIR)/usr/share/doc/lie |
43 |
install -d $(DESTDIR)/usr/share/man/man1 |
44 |
install debian/lie.1 $(DESTDIR)/usr/share/man/man1 |
45 |
gzip -f9 $(DESTDIR)/usr/share/man/man1/lie.1 |
46 |
# install debian/lie.1 $(DESTDIR)/usr/share/man/man1/Lie.exe.1 |
47 |
# gzip -f9 $(DESTDIR)/usr/share/man/man1/Lie.exe.1 |
32 |
|
48 |
|
33 |
# To 'make all', we first descend into the subdirectories, and afterwards |
49 |
# To 'make all', we first descend into the subdirectories, and afterwards |
34 |
# return to finish here. |
50 |
# return to finish here. |
35 |
|
51 |
|
36 |
all: |
52 |
all: |
37 |
$(MAKE) math_functions binding_functions |
53 |
$(MAKE) math_functions binding_functions |
38 |
$(MAKE) finish |
54 |
$(MAKE) finish |
39 |
|
55 |
|
40 |
finish: Lie.exe LEARN.ind INFO.ind # do not call 'make finish' directly |
56 |
finish: lie Lie.exe LEARN.ind INFO.ind # do not call 'make finish' directly |
41 |
|
57 |
|
42 |
math_functions: |
58 |
math_functions: |
43 |
$(MAKE) -C box all |
59 |
$(MAKE) -C box all |
Lines 88-94
Link Here
|
88 |
$(CC) -ansi -c -o gapdate.o date.c |
104 |
$(CC) -ansi -c -o gapdate.o date.c |
89 |
|
105 |
|
90 |
Lie.exe: date.o |
106 |
Lie.exe: date.o |
91 |
$(CC) -o Lie.exe $(objects) date.o static/*.o box/*.o -lreadline |
107 |
$(CC) -o Lie.exe $(objects) date.o static/*.o box/*.o -lreadline -lncurses |
92 |
chmod g+w Lie.exe |
108 |
chmod g+w Lie.exe |
93 |
Liegap.exe: gapdate.o |
109 |
Liegap.exe: gapdate.o |
94 |
$(CC) -o Liegap.exe $(GAP_objects) gapdate.o static/*.o box/*.o |
110 |
$(CC) -o Liegap.exe $(GAP_objects) gapdate.o static/*.o box/*.o |
Lines 101-108
Link Here
|
101 |
chmod g+w Lie.exe |
117 |
chmod g+w Lie.exe |
102 |
$(MAKE) LEARN.ind INFO.ind script INFO.a |
118 |
$(MAKE) LEARN.ind INFO.ind script INFO.a |
103 |
|
119 |
|
104 |
script: |
120 |
lie: |
105 |
./make_lie |
121 |
./make_lie $(DESTDIR) |
106 |
|
122 |
|
107 |
INFO.ind: INFO.0 INFO.1 INFO.2 INFO.3 INFO.4 infoind |
123 |
INFO.ind: INFO.0 INFO.1 INFO.2 INFO.3 INFO.4 infoind |
108 |
./infoind |
124 |
./infoind |
Lines 123-127
Link Here
|
123 |
clean: |
139 |
clean: |
124 |
$(MAKE) -C box clean |
140 |
$(MAKE) -C box clean |
125 |
$(MAKE) -C static clean |
141 |
$(MAKE) -C static clean |
126 |
rm -f *~ *.o parser.[ch] INFO.a LEARN.ind |
142 |
rm -f *~ *.o parser.[ch] INFO.a LEARN.ind INFO.ind |
127 |
rm -f Lie.exe Liegap.exe infoind learnind util/*.o |
143 |
rm -f lie Lie.exe Liegap.exe infoind learnind util/*.o |
|
|
144 |
rm -f debian/lie/usr/bin/Lie.exe |
145 |
rm -f debian/lie/usr/bin/lie |
146 |
rm -f debian/lie/usr/share/lie/* |