Lines 1-40
Link Here
|
1 |
--- makefile.orig Mon Aug 9 11:52:40 2004 |
1 |
--- makefile.orig Thu Dec 30 19:55:17 2004 |
2 |
+++ makefile Mon Aug 9 12:03:56 2004 |
2 |
+++ makefile Tue Jan 11 12:10:05 2005 |
3 |
@@ -43,10 +43,10 @@ |
3 |
@@ -50,13 +50,13 @@ |
4 |
#LIBPATH-The directory for libtomcrypt to be installed to. |
|
|
5 |
#INCPATH-The directory to install the header files for libtomcrypt. |
4 |
#INCPATH-The directory to install the header files for libtomcrypt. |
6 |
#DATAPATH-The directory to install the pdf docs. |
5 |
#DATAPATH-The directory to install the pdf docs. |
7 |
-DESTDIR= |
6 |
DESTDIR= |
8 |
-LIBPATH=/usr/lib |
7 |
-LIBPATH=/usr/lib |
9 |
-INCPATH=/usr/include |
8 |
-INCPATH=/usr/include |
10 |
-DATAPATH=/usr/share/doc/libtomcrypt/pdf |
9 |
-DATAPATH=/usr/share/doc/libtomcrypt/pdf |
11 |
+DESTDIR=$(PREFIX) |
10 |
+LIBPATH=$(PREFIX)/lib |
12 |
+LIBPATH=/lib |
11 |
+INCPATH=$(PREFIX)/include |
13 |
+INCPATH=/include |
12 |
+DATAPATH=$(PREFIX)/share/doc/libtomcrypt/pdf |
14 |
+DATAPATH=/share/doc/libtomcrypt/pdf |
13 |
|
|
|
14 |
#Who do we install as? |
15 |
USER=root |
16 |
-GROUP=root |
17 |
+GROUP=wheel |
15 |
|
18 |
|
16 |
#List of objects to compile. |
19 |
#List of objects to compile. |
17 |
|
20 |
|
18 |
@@ -179,13 +179,15 @@ |
21 |
@@ -251,7 +251,7 @@ |
19 |
#This rule installs the library and the header files. This must be run |
22 |
latex crypt > /dev/null |
20 |
#as root in order to have a high enough permission to write to the correct |
23 |
makeindex crypt.idx > /dev/null |
21 |
#directories and to set the owner and group to root. |
24 |
latex crypt > /dev/null |
22 |
-install: library docs |
25 |
- dvipdf crypt |
23 |
- install -d -g root -o root $(DESTDIR)$(LIBPATH) |
26 |
+ dvipdft crypt |
24 |
- install -d -g root -o root $(DESTDIR)$(INCPATH) |
27 |
mv -ivf crypt.pdf doc/crypt.pdf |
25 |
- install -d -g root -o root $(DESTDIR)$(DATAPATH) |
28 |
rm -f $(LEFTOVERS) |
26 |
- install -g root -o root $(LIBNAME) $(DESTDIR)$(LIBPATH) |
|
|
27 |
- install -g root -o root $(HEADERS) $(DESTDIR)$(INCPATH) |
28 |
- install -g root -o root doc/crypt.pdf $(DESTDIR)$(DATAPATH) |
29 |
+install: docs install-nodocs |
30 |
+ install -d -g wheel -o root $(DESTDIR)$(DATAPATH) |
31 |
+ install -g wheel -o root doc/crypt.pdf $(DESTDIR)$(DATAPATH) |
32 |
+ |
33 |
+install-nodocs: library |
34 |
+ install -d -g wheel -o root $(DESTDIR)$(LIBPATH) |
35 |
+ install -d -g wheel -o root $(DESTDIR)$(INCPATH) |
36 |
+ install -g wheel -o root $(LIBNAME) $(DESTDIR)$(LIBPATH) |
37 |
+ install -g wheel -o root $(HEADERS) $(DESTDIR)$(INCPATH) |
38 |
|
29 |
|
39 |
#This rule cleans the source tree of all compiled code, not including the pdf |
|
|
40 |
#documentation. |