blob: a1a93026e59f217b2763d0d9b03e2b9b70cec2c5 (
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
|
$NetBSD: patch-cj,v 1.2 2005/01/16 19:19:46 jmmv Exp $
Add manual links for folders and flists (PR#23466).
--- man/Makefile.in.orig 2000-01-27 20:14:58.000000000 +0000
+++ man/Makefile.in 2004-01-02 20:38:09.000000000 +0000
@@ -17,6 +17,7 @@
bindir = @bindir@
libdir = @libdir@
etcdir = @sysconfdir@
+egdir = @prefix@/share/examples/nmh
mandir = @mandir@
manext1 = 1
manext5 = 5
@@ -78,6 +79,9 @@
fmtdump.$(manext8) install-mh.$(manext8) mh-mts.$(manext8) \
post.$(manext8)
+LINK1 = flist.$(manext1) flists.$(manext1) \
+ folder.$(manext1) folders.$(manext1)
+
# source for man pages
DIST_MAN = ali.man anno.man ap.man burst.man comp.man conflict.man \
dist.man dp.man flist.man fmtdump.man folder.man forw.man \
@@ -129,8 +133,8 @@
# install the include file for man pages
install-hdr:
- $(top_srcdir)/mkinstalldirs $(etcdir)
- $(INSTALL_DATA) tmac.h $(etcdir)/tmac.h
+ $(top_srcdir)/mkinstalldirs $(egdir)
+ $(INSTALL_DATA) tmac.h $(egdir)/tmac.h
# install the man pages in man1
install-man1:
@@ -138,6 +142,14 @@
for file in $(MAN1); do \
$(INSTALL_DATA) $$file $(mandir)/man$(manext1) ; \
done
+ set $(LINK1); \
+ while test $$# -ge 2; do \
+ name=$$1; shift; \
+ link=$$1; shift; \
+ ln -sf $(mandir)/man$(manext1)/$${name} \
+ $(mandir)/man$(manext1)/$${link};\
+ done
+
# install the man pages in man5
install-man5:
@@ -163,7 +175,7 @@
# uninstall the include file for man pages
uninstall-hdr:
- rm -f $(etcdir)/tmac.h
+ rm -f $(egdir)/tmac.h
# uninstall the man pages in man1
uninstall-man1:
|