Adapted for new version
This commit is contained in:
parent
4e5611ac7b
commit
f43b2cb2bd
1 changed files with 31 additions and 19 deletions
|
@ -1,25 +1,37 @@
|
||||||
DEST=/usr/lib/tmac/tmac.kun
|
# $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?
|
||||||
|
|
||||||
install:
|
TBL=tbl
|
||||||
for i in "" 1 2 3 4 5 6 7 8 ;\
|
REFER=refer
|
||||||
do ;\
|
SUF=pr
|
||||||
cp tmac.q$i $DEST$i ;\
|
NROFF=nroff
|
||||||
|
|
||||||
|
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\
|
||||||
|
rm -f $$$(LIB)/$(MIDDLE)/$$i ;\
|
||||||
|
$(RUNSCRIPT) $$i >$$$(LIB)/$(MIDDLE)/$$i ;\
|
||||||
|
chmod -w $$$(LIB)/$(MIDDLE)/$$i ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
cmp:
|
|
||||||
for i in "" 1 2 3 4 5 6 7 8 ;\
|
|
||||||
do ;\
|
|
||||||
cmp tmac.q$i $DEST$i ;\
|
|
||||||
done
|
|
||||||
|
|
||||||
pr:
|
|
||||||
@for i in "" 1 2 3 4 5 6 7 8 ;\
|
|
||||||
do ;\
|
|
||||||
pr tmac.q$i ;\
|
|
||||||
done
|
|
||||||
|
|
||||||
opr:
|
|
||||||
make pr | opr
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@:
|
|
||||||
|
pr:
|
||||||
|
|
||||||
|
opr:
|
||||||
|
|
||||||
|
cmp:
|
||||||
|
echo "no cmp"
|
||||||
|
|
Loading…
Add table
Reference in a new issue