summaryrefslogtreecommitdiff
path: root/print/muttprint/files/patch-aa
blob: 3feafcf95e08fad174b28817947d77d3e1f2ea87 (plain) (blame)
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
--- Makefile.orig	Sun Feb 17 23:47:21 2002
+++ Makefile	Sun Feb 17 23:51:49 2002
@@ -7,26 +7,26 @@
 
 # Change this for local installation, 
 # e. g. /home/user or /usr/local
-prefix = /usr/local
+#prefix = /usr/local
 
 # Change this for some distributions (current setting
 # is OK for SuSE)
-docdir = /usr/share/doc/packages
+docdir = ${PREFIX}/share/doc
 
 # Change this to $(prefix)/man for older distributions
 # (current setting is correct according to LSB)
-mandir = $(prefix)/share/man
+mandir = ${PREFIX}/man
 
 #
 # Muttprint needs GNU make. If you installed GNU make
 # as `gmake', you have to change this
-MAKE = make
+#MAKE = make
 
 # Change this three directories only if you're know
 # what you do
-sharedir = $(prefix)/share
-libdir = $(prefix)/lib
-bindir = $(prefix)/bin
+sharedir = ${PREFIX}/share
+libdir = ${PREFIX}/lib
+bindir = ${PREFIX}/bin
 
 #####################################################
 #####################################################
@@ -35,23 +35,25 @@
 INSTALLBIN = $(install) -m 0755 
 INSTALL = $(install) -m 0644 
 
+all:
 
 nothing:
 	@echo "Nothing to do. Run \"make install\" to install Muttprint."
 
 
 install: 
-	mkdir -p $(docdir)/muttprint $(bindir) $(sharedir)/muttprint $(mandir)/man1 \
-		$(mandir)/de/man1 $(mandir)/es/man1 \
-		$(mandir)/cs/man1 $(mandir)/it/man1 \
+	mkdir -p $(bindir) $(sharedir)/muttprint \
 		$(libdir)/muttprint
-	$(INSTALLBIN) muttprint $(bindir)/
-	$(INSTALL) CHANGES COPYING INSTALL README* sample-muttprintrc-* \
-		$(docdir)/muttprint/
-	$(INSTALL) `find pics -type f -print` $(sharedir)/muttprint/
-	$(INSTALL) `find translations -type f -print` $(libdir)/muttprint/
-	$(MAKE) -C doc/manual docdir=$(docdir) install
-	$(MAKE) -C doc/manpages mandir=$(mandir) install
+	${BSD_INSTALL_SCRIPT} muttprint $(bindir)/
+	${BSD_INSTALL_DATA} `find pics -type f -print` $(sharedir)/muttprint/
+	${BSD_INSTALL_DATA} `find translations -type f -print` $(libdir)/muttprint/
+
+install-with-doc: install
+	mkdir -p $(docdir)/muttprint
+	${BSD_INSTALL_DATA} CHANGES COPYING INSTALL README* \
+		sample-muttprintrc-* $(docdir)/muttprint/
+	${MAKE} -C doc/manual docdir=$(docdir) install
+	${MAKE} -C doc/manpages mandir=$(mandir) install
 
 uninstall:
 	rm $(bindir)/muttprint