1987-03-09 15:48:43 +00:00
|
|
|
# $Header$
|
|
|
|
LIB=/usr/lib
|
|
|
|
MIDDLE=tmac
|
|
|
|
# the script replaces references to pathnames and
|
|
|
|
# deletes all comment
|
1989-12-06 12:53:37 +00:00
|
|
|
RUNSCRIPT=sed -e s-MACDIR-$(LIB)/$(MIDDLE)-g -e '/Header/!s/[ ]*\\".*//' -e '/^\.$$/d' -e 's/^\.[ ][ ]*/./'
|
1987-03-09 15:48:43 +00:00
|
|
|
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"
|