Makefile.sub revision 55839
155839SasmodaiMAN7=groff_ms.n groff_man.n groff_me.n groff_msafer.n \ 255839Sasmodai groff_mdoc.n groff_mdoc.samples.n 318099Spst 418099SpstNORMALFILES=tmac.andoc tmac.pic tmac.ps tmac.psnew tmac.psold tmac.pspic \ 518099Spst tmac.psatk tmac.dvi tmac.tty tmac.tty-char tmac.X tmac.Xps tmac.latin1 \ 655839Sasmodai tmac.lj4 eqnrc troffrc tmac.safer tmac.html tmac.arkup 718099SpstSPECIALFILES=tmac.an tmac.s 818099SpstSTRIPFILES=tmac.e tmac.doc tmac.doc.old 918099SpstMDOCFILES=doc-common doc-ditroff doc-nroff doc-syms 1018099Spstmdocdir=$(tmacdir)/mdoc 1118099SpstCLEANADD=stamp-strip stamp-wrap tmac.e-s tmac.doc-s tmac.doc.old-s \ 1255839Sasmodai doc-common-s doc-ditroff-s doc-nroff-s doc-syms-s *-wrap 1318099Spsttmac_s_prefix= 1418099Spsttmac_an_prefix= 1518099Spsttmac_wrap= 1618099Spstsys_tmac_prefix= 1718099Spst 1818099Spstall: stamp-strip stamp-wrap 1918099Spst 2018099Spstinstall_data: $(NORMALFILES) $(SPECIALFILES) stamp-wrap stamp-strip man.local 2118099Spst -test -d $(tmacdir) || mkdir $(tmacdir) 2218099Spst if test -n "$(tmac_wrap)"; then \ 2355839Sasmodai for m in ""$(tmac_wrap); do \ 2418099Spst $(INSTALL_DATA) $$m-wrap $(tmacdir)/tmac.$$m; \ 2518099Spst done; \ 2618099Spst fi 2718099Spst for f in $(NORMALFILES); do \ 2818099Spst rm -f $(tmacdir)/$$f; \ 2918099Spst $(INSTALL_DATA) $(srcdir)/$$f $(tmacdir)/$$f; \ 3018099Spst done 3118099Spst -rm -f $(tmacdir)/tmac.$(tmac_s_prefix)s 3218099Spst $(INSTALL_DATA) $(srcdir)/tmac.s $(tmacdir)/tmac.$(tmac_s_prefix)s 3318099Spst -rm -f $(tmacdir)/tmac.$(tmac_an_prefix)an 3418099Spst $(INSTALL_DATA) $(srcdir)/tmac.an $(tmacdir)/tmac.$(tmac_an_prefix)an 3518099Spst for f in $(STRIPFILES); do \ 3618099Spst rm -f $(tmacdir)/$$f; \ 3718099Spst $(INSTALL_DATA) $$f-s $(tmacdir)/$$f; \ 3818099Spst done 3918099Spst -test -d $(mdocdir) || mkdir $(mdocdir) 4018099Spst for f in $(MDOCFILES); do \ 4118099Spst rm -f $(mdocdir)/$$f; \ 4218099Spst $(INSTALL_DATA) $$f-s $(mdocdir)/$$f; \ 4318099Spst done 4418099Spst -test -f $(tmacdir)/man.local || \ 4518099Spst $(INSTALL_DATA) $(srcdir)/man.local $(tmacdir)/man.local 4618099Spst -rm -f temp 4718099Spst 4818099Spststamp-strip: $(STRIPFILES) $(MDOCFILES) 4918099Spst for f in $(STRIPFILES) $(MDOCFILES); do \ 5018099Spst rm -f $$f-s; \ 5118099Spst sed -f $(srcdir)/strip.sed $(srcdir)/$$f >$$f-s; \ 5218099Spst done 5318099Spst touch $@ 5418099Spst 5518099Spststamp-wrap: 5618099Spst if test -n "$(tmac_wrap)"; then \ 5755839Sasmodai for m in ""$(tmac_wrap); do \ 5818099Spst rm -f $$m-wrap; \ 5918099Spst echo .cp 1 >$$m-wrap; \ 6018099Spst echo .so $(sys_tmac_prefix)$$m >>$$m-wrap; \ 6118099Spst done; \ 6218099Spst fi 6318099Spst touch $@ 6418099Spst 6518099Spstuninstall_sub: 6618099Spst -if test -n "$(tmac_wrap)"; then \ 6755839Sasmodai for m in ""$(tmac_wrap); do \ 6855839Sasmodai rm -f $(tmacdir)/tmac.$$m; \ 6955839Sasmodai done; \ 7018099Spst fi 7118099Spst -for f in $(NORMALFILES) $(STRIPFILES); do rm -f $(tmacdir)/$$f; done 7218099Spst -rm -f $(tmacdir)/tmac.$(tmac_s_prefix)s 7318099Spst -rm -f $(tmacdir)/tmac.$(tmac_an_prefix)an 7418099Spst -if cmp -s $(tmacdir)/man.local $(srcdir)/man.local; then \ 7518099Spst rm -f $(tmacdir)/man.local; \ 7618099Spst fi 7718099Spst -for f in $(MDOCFILES); do rm -f $(mdocdir)/$$f; done 7818099Spst -rmdir $(mdocdir) 79