summaryrefslogtreecommitdiff
path: root/recipes/mgetty/mgetty-1.1.30/09-doc_Makefile
blob: 1af8ca477106daff517e53a06521274f07ae9e3a (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
--- mgetty-1.1.28.copy/doc/Makefile	1997-11-27 15:33:26.000000000 -0500
+++ mgetty-1.1.28/doc/Makefile	2002-07-30 03:27:31.000000000 -0400
@@ -4,6 +4,8 @@
 #
 
 NROFF=nroff
+
+INSTALL=install
 #
 #
 MAN1PAGES=g32pbm.1 g3cat.1 pbm2g3.1 fax.1 \
@@ -12,11 +14,11 @@
 MAN5PAGES=faxqueue.5
 MAN8PAGES=sendfax.8 mgetty.8 callback.8 faxrunqd.8
 MANSRC=$(MAN1PAGES) $(MAN4PAGES) $(MAN5PAGES) $(MAN8PAGES)
-MAN1DIR=/usr/local/man/man1
-MAN4DIR=/usr/local/man/man4
-MAN5DIR=/usr/local/man/man5
-MAN8DIR=/usr/local/man/man8
-INFODIR=/usr/local/info
+MAN1DIR=$(PREFIX)/usr/share/man/man1
+MAN4DIR=$(PREFIX)/usr/share/man/man4
+MAN5DIR=$(PREFIX)/usr/share/man/man5
+MAN8DIR=$(PREFIX)/usr/share/man/man8
+INFODIR=$(PREFIX)/usr/share/info
 
 #
 # formatted man pages
@@ -26,18 +28,19 @@
 
 all:
 
-doc-all: mgetty.asc mgetty.info mgetty.dvi mgetty.ps fmt-manpages $(MANSRC) 
+doc-all: mgetty.info mgetty.dvi mgetty.ps fmt-manpages $(MANSRC) # mgetty.asc
 
 manpages: $(MANSRC)
 
 fmt-manpages:
 	-$(MAKE) `for i in $(MANSRC) ; do echo \`expr $$i : "\([^.]*\)"\`.man ; done `
 
-mgetty.asc: mgetty.ms
-	-$(NROFF) -ms mgetty.ms >mgetty.asc
+# commented out since I couldn't find texi2roff
+#mgetty.asc: mgetty.ms
+#	-$(NROFF) -ms mgetty.ms >mgetty.asc
 
-mgetty.ms: mgetty.texi
-	-texi2roff -ms <mgetty.texi >mgetty.ms
+#mgetty.ms: mgetty.texi
+#	-texi2roff -ms <mgetty.texi >mgetty.ms
 
 mgetty.html: mgetty.texi
 	-texi2html -verbose mgetty.texi
@@ -62,10 +65,12 @@
 
 fullclean: clean
 	rm -f mgetty.ps mgetty.dvi mgetty.aux mgetty.info* mgetty.ms \
-	      *.man *.[1-9] mgetty.texi
+	      *.man *.[1-9] mgetty.texi # mgetty.asc
+
+install: install.man install.info
 
-install: $(MANSRC) mgetty.info
-	-mkdir `dirname $(MAN1DIR)` $(MAN1DIR) $(MAN4DIR) $(MAN5DIR) $(MAN8DIR) 2>/dev/null
+install.man: $(MANSRC)
+	-mkdir -p `dirname $(MAN1DIR)` $(MAN1DIR) $(MAN4DIR) $(MAN5DIR) $(MAN8DIR) 2>/dev/null
 	for i in $(MAN1PAGES) ; do \
 		$(INSTALL) -m 644 $$i $(MAN1DIR) ; \
 	done
@@ -78,8 +83,10 @@
 	for i in $(MAN8PAGES) ; do \
 		$(INSTALL) -m 644 $$i $(MAN8DIR) ; \
 	done
+
+install.info:
 	if [ -f mgetty.info ] ; then\
-	    test -d $(INFODIR) || mkdir $(INFODIR) 2>/dev/null ; \
+	    test -d $(INFODIR) || mkdir -p $(INFODIR) 2>/dev/null ; \
 	    for i in mgetty.info* ; do \
 		$(INSTALL) -m 644 $$i $(INFODIR) ; \
 	    done ; \
@@ -92,8 +99,8 @@
 ../mgetty0$(VS)doc.tar.gz: doc-all mgetty.html
 	gtar cvvf ../mgetty0$(VS)doc.tar mgetty.texi mgetty.info* \
 				         mgetty.dvi mgetty.ps \
-				         mgetty.ms mgetty.asc \
 					 mgetty.html *.man
+#				         mgetty.ms mgetty.asc
 	gzip -f -9 -v ../mgetty0$(VS)doc.tar
 
 # explicit man page dependencies