ack/mkun/Makefile

38 lines
630 B
Makefile
Raw Normal View History

1987-03-09 15:48:43 +00:00
# $Header$
LIB=/usr/lib
MIDDLE=tmac
# the script replaces references to pathnames and
# deletes all comment
RUNSCRIPT=sed -e s-LIBDIR-$(LIB)-g -e '/Header/!s/[ ]*\\".*//' -e '/^\.$$/d' -e 's/^\.[ ][ ]*/./'
FILES=tmac.kun tmac.q?
1985-01-08 13:52:58 +00:00
1987-03-09 15:48:43 +00:00
TBL=tbl
REFER=refer
SUF=pr
NROFF=nroff
1985-01-08 13:52:58 +00:00
1987-03-09 15:48:43 +00:00
head: $(FILES)
pubmac.$(SUF): pubmac
sed 's/^\.UW/.BW/' < pubmac | $(TBL) | \
$(REFER) | $(NROFF) -kun > pubmac.$(SUF)
install: install_files
install_files:
for i in $(FILES) ;\
do\
1988-04-26 10:49:07 +00:00
rm -f $(LIB)/$(MIDDLE)/$$i ;\
$(RUNSCRIPT) $$i >$(LIB)/$(MIDDLE)/$$i ;\
chmod -w $(LIB)/$(MIDDLE)/$$i ;\
1987-03-09 15:48:43 +00:00
done
clean:
1985-01-08 13:52:58 +00:00
pr:
opr:
1987-03-09 15:48:43 +00:00
cmp:
echo "no cmp"