From 9d24b2a46b2efb82385e48114d28f06c530afb9f Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 11 Mar 1987 13:13:49 +0000 Subject: [PATCH] *** empty log message *** --- man/Makefile | 69 +++++++++++----------------------------------------- 1 file changed, 14 insertions(+), 55 deletions(-) diff --git a/man/Makefile b/man/Makefile index 2dbeaa278..d1d1e1c91 100644 --- a/man/Makefile +++ b/man/Makefile @@ -1,62 +1,21 @@ # $Header$ +NROFF=nroff +MANDIR=/usr/man + all: - -nroff macro.v7 6500_as.1 > 6500_as.opr - -nroff macro.v7 6800_as.1 > 6800_as.opr - -nroff macro.v7 6809_as.1 > 6809_as.opr - -nroff macro.v7 8080_as.1 > 8080_as.opr - -nroff macro.v7 i86_as.1 > i86_as.opr - -nroff macro.v7 m68k2_as.1 > m68k2_as.opr - -nroff macro.v7 m68k_int.1 > m68k_int.opr - -nroff macro.v7 pdp_as.1 > pdp_as.opr - -nroff macro.v7 ns_as.1 > ns_as.opr - -nroff macro.v7 z8000_as.1 > z8000_as.opr - -nroff macro.v7 z80_as.1 > z80_as.opr - -tbl macro.v7 ack.1 | nroff >ack.opr - -nroff macro.v7 arch.1 >arch.1.opr - -nroff macro.v7 LLgen.1 > LLgen.1.opr - -nroff macro.v7 arch.5 >arch.5.opr - -nroff macro.v7 libmon.7 > libmon.opr - -nroff macro.v7 libpc.7 > libpc.opr - -nroff macro.v7 cpp.6 > cpp.opr - -nroff macro.v7 cgg.6 > cgg.opr - -nroff macro.v7 em_ass.6 > em_ass.opr - -nroff macro.v7 em_cg.6 > em_cg.opr - -nroff macro.v7 em_ncg.6 > em_ncg.opr - -nroff macro.v7 em_decode.6 > em_decode.opr - -nroff macro.v7 em_opt.6 > em_opt.opr - -nroff macro.v7 em_pem.6 > em_pem.opr - -nroff macro.v7 pc_prlib.7 > pc_prlib.opr - -nroff macro.v7 uni_ass.6 >uni_ass.opr + for i in *.[1-8] ; do \ + $(NROFF) -man head $$i > $$i.opr ; \ + done install: - -cp 6500_as.1 > /usr/man/man1/6500_as.1 - -cp 6800_as.1 > /usr/man/man1/6800_as.1 - -cp 6809_as.1 > /usr/man/man1/6809_as.1 - -cp 8080_as.1 > /usr/man/man1/8080_as.1 - -cp i86_as.1 > /usr/man/man1/i86_as.1 - -cp m68k2_as.1 > /usr/man/man1/m68k2_as.1 - -cp m68k_int.1 > /usr/man/man1/m68k_int.1 - -cp pdp_as.1 > /usr/man/man1/pdp_as.1 - -cp ns_as.1 > /usr/man/man1/ns_as.1 - -cp z80_as.1 > /usr/man/man1/z80_as.1 - -cp z8000_as.1 > /usr/man/man1/z8000_as.1 - -tbl ack.1 >/usr/man/man1/ack.1 - -cp arch.1 /usr/man/man1/arch.1 - -cp LLgen.1 /usr/man/man1/LLgen.1 - -cp arch.5 /usr/man/man5/arch.5 - -cp libmon.7 /usr/man/man7/em_libmon.7 - -cp libpc.7 /usr/man/man7/em_libpc.7 - -cp cpp.6 /usr/man/man6/cpp.6 - -cp cgg.6 /usr/man/man6/cgg.6 - -cp em_ass.6 /usr/man/man6/em_ass.6 - -cp em_cg.6 /usr/man/man6/em_cg.6 - -cp em_ncg.6 /usr/man/man6/em_ncg.6 - -cp em_decode.6 /usr/man/man6/em_decode.6 - -cp em_opt.6 /usr/man/man6/em_opt.6 - -cp em_pem.6 /usr/man/man6/em_pem.6 - -cp pc_prlib.7 /usr/man/man7/em_pc_prlib.7 - -cp uni_ass.6 /usr/man/man6/uni_ass.6 + for i in *.[1-8] ; do \ + num=expr $$i : '.*\.\([1-8]\)' ; \ + if test -f $(MANDIR)/man$$num/$$i ; \ + then cp $$i $(MANDIR)/man$$num/em_$$i ; \ + else cp $$i $(MANDIR)/man$$num/$$i ; \ + fi ; \ + done opr: make pr | opr @@ -66,4 +25,4 @@ pr: @cat *.opr clean: - -rm -f *.opr + -rm -f *.opr *.out