blob: 8ce4643768203a6bd24a5de07218636c17f1c3d3 (
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
|
MAN7=groff_ms.n me.n msafer.n
NORMALFILES=$(TMAC_ANDOC) tmac.pic tmac.ps tmac.psnew tmac.psold tmac.pspic \
tmac.psatk tmac.dvi tmac.tty tmac.tty-char tmac.X tmac.Xps tmac.latin1 \
tmac.lj4 eqnrc troffrc tmac.safer
SPECIALFILES=$(TMAC_AN) tmac.s
STRIPFILES=tmac.e tmac.doc tmac.doc.old
# MDOCFILES=doc-common doc-ditroff doc-nroff doc-syms
mdocdir=$(tmacdir)/mdoc
CLEANADD=stamp-strip stamp-wrap tmac.e-s tmac.doc-s tmac.doc.old-s \
doc-common-s doc-ditroff-s doc-nroff-s doc-syms-s *-wrap
tmac_s_prefix=
tmac_an_prefix=
tmac_wrap=
sys_tmac_prefix=
all: stamp-strip stamp-wrap
install_data: $(NORMALFILES) $(SPECIALFILES) stamp-wrap stamp-strip man.local
-test -d $(tmacdir) || mkdir $(tmacdir)
if test -n "$(tmac_wrap)"; then \
for m in $(tmac_wrap); do \
$(INSTALL_DATA) $$m-wrap $(tmacdir)/tmac.$$m; \
done; \
fi
for f in $(NORMALFILES); do \
rm -f $(tmacdir)/$$f; \
$(INSTALL_DATA) $(srcdir)/$$f $(tmacdir)/$$f; \
done
if test -n "$(TMAC_S)"; then \
rm -f $(tmacdir)/tmac.$(tmac_s_prefix)s ; \
$(INSTALL_DATA) $(srcdir)/tmac.s $(tmacdir)/tmac.$(tmac_s_prefix)s ; \
fi
if test -n "$(TMAC_AN)"; then \
rm -f $(tmacdir)/tmac.$(tmac_an_prefix)an ; \
$(INSTALL_DATA) $(srcdir)/tmac.an $(tmacdir)/tmac.$(tmac_an_prefix)an ; \
fi
for f in $(STRIPFILES); do \
rm -f $(tmacdir)/$$f; \
$(INSTALL_DATA) $$f-s $(tmacdir)/$$f; \
done
-test -d $(mdocdir) || mkdir $(mdocdir)
for f in $(MDOCFILES); do \
rm -f $(mdocdir)/$$f; \
$(INSTALL_DATA) $$f-s $(mdocdir)/$$f; \
done
-test -f $(tmacdir)/man.local || \
$(INSTALL_DATA) $(srcdir)/man.local $(tmacdir)/man.local
-rm -f temp
stamp-strip: $(STRIPFILES) $(MDOCFILES)
for f in $(STRIPFILES) $(MDOCFILES); do \
rm -f $$f-s; \
sed -f $(srcdir)/strip.sed $(srcdir)/$$f >$$f-s; \
done
touch $@
stamp-wrap:
if test -n "$(tmac_wrap)"; then \
for m in $(tmac_wrap); do \
rm -f $$m-wrap; \
echo .cp 1 >$$m-wrap; \
echo .so $(sys_tmac_prefix)$$m >>$$m-wrap; \
done; \
fi
touch $@
uninstall_sub:
-if test -n "$(tmac_wrap)"; then \
for m in $(tmac_wrap); do rm -f $(tmacdir)/tmac.$$m; done; \
fi
-for f in $(NORMALFILES) $(STRIPFILES); do rm -f $(tmacdir)/$$f; done
-rm -f $(tmacdir)/tmac.$(tmac_s_prefix)s
-rm -f $(tmacdir)/tmac.$(tmac_an_prefix)an
-if cmp -s $(tmacdir)/man.local $(srcdir)/man.local; then \
rm -f $(tmacdir)/man.local; \
fi
-for f in $(MDOCFILES); do rm -f $(mdocdir)/$$f; done
-rmdir $(mdocdir)
|