ack/man/Makefile

31 lines
468 B
Makefile
Raw Normal View History

# $Header$
1987-03-11 13:13:49 +00:00
NROFF=nroff
MANDIR=/usr/man
1987-03-11 14:54:29 +00:00
SUF=opr
1987-03-11 13:13:49 +00:00
1984-07-12 14:14:54 +00:00
all:
1987-03-11 13:13:49 +00:00
for i in *.[1-8] ; do \
1987-03-11 14:54:29 +00:00
$(NROFF) -man head $$i > $$i.$(SUF) ; \
1987-03-11 13:13:49 +00:00
done
1984-07-12 14:14:54 +00:00
install:
1987-03-11 13:13:49 +00:00
for i in *.[1-8] ; do \
num=expr $$i : '.*\.\([1-8]\)' ; \
if test -f $(MANDIR)/man$$num/$$i ; \
1987-03-11 14:54:29 +00:00
then cat head $$i > $(MANDIR)/man$$num/em_$$i ; \
else cat head $$i $(MANDIR)/man$$num/$$i ; \
1987-03-11 13:13:49 +00:00
fi ; \
done
1984-07-12 14:14:54 +00:00
opr:
make pr | opr
pr:
@make all >make.pr.out 2>&1 &
@cat *.opr
clean:
1987-03-11 13:13:49 +00:00
-rm -f *.opr *.out
1987-03-11 14:54:29 +00:00
-rm -f *.$(SUF)