summaryrefslogtreecommitdiff
blob: 79d99e5977c45b364b0efc23ff50b2dd8100d014 (plain)
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
--- argtable2.orig/Makefile.in	2005-02-01 08:54:09.211698973 -0500
+++ argtable2/Makefile.in	2005-02-01 09:40:35.358574264 -0500
@@ -30,8 +30,6 @@
 libdir      ?= @libdir@
 includedir  ?= @includedir@
 mandir      ?= @mandir@/man3
-docdir      ?= $(prefix)/share/doc/argtable2
-exampledir  ?= $(prefix)/share/doc/argtable2/example
 
 
 all:
@@ -47,26 +45,16 @@
 	cd tests; $(MAKE) installcheck
 
 install: all
-	@INSTALL@ -d $(includedir)
-	@INSTALL@ -d $(libdir)
-	@INSTALL@ -d $(mandir)
-	@INSTALL@ -d $(docdir)
-	@INSTALL@ -d $(exampledir)
-	@INSTALL@ -m 644 src/argtable2.h            $(includedir)
-	@INSTALL@ -m 644 src/libargtable2.a         $(libdir)
-	@INSTALL@ -m 644 src/@LIBDYNAMIC@        $(libdir)/@LIBDYNAMICVERS@
-	@INSTALL@ -m 644 doc/*.html                 $(docdir)
-	@INSTALL@ -m 644 doc/*.gif                  $(docdir)
-	@INSTALL@ -m 644 doc/*.ps                   $(docdir)
-	@INSTALL@ -m 644 doc/*.pdf                  $(docdir)
-	@INSTALL@ -m 644 doc/argtable2.3            $(mandir)
-	@INSTALL@ -m 644 example/*.[ch]             $(exampledir)
-	@INSTALL@ -m 644 example/Makefile           $(exampledir)
-	@INSTALL@ -m 644 example/README.txt         $(exampledir)
-	-@STRIP@ -S $(libdir)/libargtable2.a $(libdir)/@LIBDYNAMICVERS@
-	@RM@ -f $(libdir)/@LIBDYNAMIC@
-	cd $(libdir) ; @LN@ -fs @LIBDYNAMICVERS@ @LIBDYNAMIC@
-	cd $(mandir) ; @LN@ -fs argtable2.3 argtable.3
+	@INSTALL@ -d $(DESTDIR)$(includedir)
+	@INSTALL@ -d $(DESTDIR)$(libdir)
+	@INSTALL@ -d $(DESTDIR)$(mandir)
+	@INSTALL@ -m 644 src/argtable2.h            $(DESTDIR)$(includedir)
+	@INSTALL@ -m 644 src/libargtable2.a         $(DESTDIR)$(libdir)
+	@INSTALL@ -m 644 src/@LIBDYNAMIC@	    $(DESTDIR)$(libdir)/@LIBDYNAMICVERS@
+	@INSTALL@ -m 644 doc/argtable2.3            $(DESTDIR)$(mandir)
+	@RM@ -f $(DESTDIR)$(libdir)/@LIBDYNAMIC@
+	cd $(DESTDIR)$(libdir) ; @LN@ -fs @LIBDYNAMICVERS@ @LIBDYNAMIC@
+	cd $(DESTDIR)$(mandir) ; @LN@ -fs argtable2.3 argtable.3
 
 uninstall:
 	@RM@ -f $(includedir)/argtable2.h