summaryrefslogtreecommitdiff
path: root/textproc/html-pretty/files/patch-Makefile.in
blob: ce7cd1770c13f0d4a1975bddc2215a30b6a26a8d (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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
--- Makefile.in.orig	2001-08-25 21:56:14 UTC
+++ Makefile.in
@@ -34,7 +34,7 @@
 ###	install			install htmlpty in system directories
 ###	install-exe		install only htmlpty executable
 ###	install-man		install only htmlpty manual pages
-###	install-lib		install only htmlpty library files
+###	install-data		install only htmlpty data files
 ###	install-ftp		install htmlpty in FTP directory
 ###	lint			run lint on C source code
 ###	maintainer-clean	remove absolutely everything that make
@@ -49,7 +49,7 @@
 ###	uninstall		remove htmlpty from system directories
 ###	uninstall-exe		remove htmlpty executable from system
 ###				directories
-###	uninstall-lib		remove htmlpty library files from system
+###	uninstall-data		remove htmlpty data files from system
 ###				directories
 ###	uninstall-man		remove htmlpty manual pages from system
 ###				directories
@@ -149,21 +149,21 @@
 
 #### Start of system configuration section. ####
 
-prefix          = /usr/local
+prefix          = @prefix@
 exec_prefix     = $(prefix)
 
 bindir          = $(exec_prefix)/bin
-datadir         = $(prefix)/lib
+datadir         = $(prefix)/share
 infodir         = $(prefix)/info
-libdir          = $(prefix)/share/lib
+libdir          = $(prefix)/lib
 srcdir          = @srcdir@
 
 ### NB: the default catalog search algorithm in htmlpty is based on
 ### mapping /the/path/to/bin/htmlpty to
-### /the/path/to/share/lib/htmlpty, so the values of BINDIR and LIBDIR
+### /the/path/to/share/lib/htmlpty, so the values of BINDIR and DATADIR
 ### are NOT independent.
 BINDIR          = $(bindir)
-LIBDIR		= $(libdir)
+DATADIR		= $(datadir)
 MANDIR          = $(prefix)/man
 MANEXT		= 1
 
@@ -217,7 +217,7 @@ INSTALL         = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA    = @INSTALL_DATA@
 
-LDFLAGS         = $(OPT) -L$(prefix)/lib
+LDFLAGS         = $(OPT)
 LIBS            = @LIBS@
 
 VPATH           = @srcdir@
@@ -743,32 +743,22 @@ htmlpty.zoo:	htmlpty.tar
 	$(ZOO) v htmlpty-$(VERSION).zoo >htmlpty-$(VERSION).zoo-lst
 	$(LN) htmlpty-$(VERSION).zoo htmlpty.zoo
 
-install:	htmlpty install-exe install-lib install-man
+install:	htmlpty install-exe install-data install-man
 
 ### Remove the old executable before installing the new one, so as to
 ### preserve the link to the old version.  We first rename the file
 ### before deleting it, to deal with systems that do not permit
 ### deletion of an executable that is in use.
 install-exe:
-	if test -f $(BINDIR)/$(PROGRAM) ; \
-	then \
-		$(MV) $(BINDIR)/$(PROGRAM) $(BINDIR)/$(PROGRAM).tmp ; \
-		$(RM) $(BINDIR)/$(PROGRAM).tmp ; \
-	fi
-	$(CP) htmlpty $(BINDIR)/$(PROGRAM)
-	-$(CHMOD) 775 $(BINDIR)/$(PROGRAM)
-	-$(RM) $(BINDIR)/$(PROGRAM)-$(VERSION)
-	$(LN) $(BINDIR)/$(PROGRAM) $(BINDIR)/$(PROGRAM)-$(VERSION)
+	$(INSTALL) -m 755 htmlpty $(DESTDIR)$(BINDIR)/$(PROGRAM)
 
 install-man:
-	-$(RM) $(MANDIR)/cat$(MANEXT)/$(PROGRAM).$(MANEXT)
-	$(CP) htmlpty.man $(MANDIR)/man$(MANEXT)/$(PROGRAM).$(MANEXT)
-	-$(CHMOD) 664 $(MANDIR)/man$(MANEXT)/$(PROGRAM).$(MANEXT)
+	-$(MKDIR) $(DESTDIR)$(MANDIR)/man$(MANEXT)
+	$(INSTALL_DATA) htmlpty.man $(DESTDIR)$(MANDIR)/man$(MANEXT)/$(PROGRAM).$(MANEXT)
 
-install-lib:
-	-$(MKDIR) $(LIBDIR)/$(PROGRAM)
-	$(CP) Styles/catalog Styles/*.sty $(LIBDIR)/$(PROGRAM)/
-	$(CHMOD) 664 $(LIBDIR)/$(PROGRAM)/*
+install-data:
+	-$(MKDIR) $(DESTDIR)$(DATADIR)/$(PROGRAM)
+	$(INSTALL_DATA) Styles/catalog Styles/*.sty $(DESTDIR)$(DATADIR)/$(PROGRAM)/
 
 install-ftp:	htmlpty.tar htmlpty.zip htmlpty.zoo
 	$(TAR) tvf htmlpty-$(VERSION).tar >$(FTPDIR)/htmlpty-$(VERSION).tar-lst
@@ -827,14 +817,14 @@ table.o:	table.c builtin.h default.h $(H
 test-version:
 	@echo "Version number is ""'"$(VERSION)"'"
 
-uninstall:	uninstall-exe uninstall-lib uninstall-man
+uninstall:	uninstall-exe uninstall-data uninstall-man
 
 uninstall-exe:
 	-$(RM) $(BINDIR)/$(PROGRAM)
 	-$(RM) $(BINDIR)/$(PROGRAM)-$(VERSION)
 
-uninstall-lib:
-	-$(RM) -r $(LIBDIR)/$(PROGRAM)
+uninstall-data:
+	-$(RM) -r $(DATADIR)/$(PROGRAM)
 
 uninstall-man:
 	-$(RM) $(MANDIR)/cat$(MANEXT)/$(PROGRAM).$(MANEXT)