mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
/sys/doc: add mk clean
Add a mk clean to remove all generated files, and add pdf generation to subdirs missing it.
This commit is contained in:
parent
28465682cf
commit
05f2965980
4 changed files with 25 additions and 7 deletions
|
@ -30,4 +30,4 @@ fs.html:D: $OBJ
|
||||||
{echo $FONTS; tbl $OBJ } | eqn | htmlroff -ms -mhtml >$target
|
{echo $FONTS; tbl $OBJ } | eqn | htmlroff -ms -mhtml >$target
|
||||||
|
|
||||||
clean:V:
|
clean:V:
|
||||||
rm -f fs.^(html trout ps pdf)
|
rm -f fs.^(html trout ps pdf) p10.png pa1.png
|
||||||
|
|
|
@ -1,9 +1,15 @@
|
||||||
</sys/doc/fonts
|
</sys/doc/fonts
|
||||||
|
|
||||||
|
all:V: il.ps il.pdf
|
||||||
|
|
||||||
il.ps:D: il.ms transition.pic
|
il.ps:D: il.ms transition.pic
|
||||||
{echo $FONTS; cat il.ms} | pic | troff -ms | lp -dstdout >il.ps
|
{echo $FONTS; cat il.ms} | pic | troff -ms | lp -dstdout >il.ps
|
||||||
../cleanps il.ps
|
../cleanps il.ps
|
||||||
|
|
||||||
|
%.pdf:D: %.ps
|
||||||
|
cat ../docfonts $stem.ps >_$stem.ps
|
||||||
|
# distill _$stem.ps && mv _$stem.pdf $stem.pdf
|
||||||
|
ps2pdf _$stem.ps $stem.pdf && rm -f _$stem.ps
|
||||||
|
|
||||||
il.html:D: il.ms transition.pic
|
il.html:D: il.ms transition.pic
|
||||||
pic il.ms | htmlroff -ms -mhtml >il.html
|
pic il.ms | htmlroff -ms -mhtml >il.html
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,8 @@ ALL=\
|
||||||
colophon\
|
colophon\
|
||||||
nupas/nupas\
|
nupas/nupas\
|
||||||
nssec\
|
nssec\
|
||||||
|
fossil\
|
||||||
|
backup\
|
||||||
|
|
||||||
ALLPS=${ALL:%=%.ps}
|
ALLPS=${ALL:%=%.ps}
|
||||||
HTML=${ALL:%=%.html} release3.html release4.html
|
HTML=${ALL:%=%.html} release3.html release4.html
|
||||||
|
@ -51,7 +53,7 @@ FILES=`{mkfilelist $ALL}
|
||||||
DIRS=`{mkdirlist $ALL}
|
DIRS=`{mkdirlist $ALL}
|
||||||
NAMES=$FILES $DIRS
|
NAMES=$FILES $DIRS
|
||||||
|
|
||||||
all:V: ${FILES:%=%.ps} dirs
|
all:V: ${FILES:%=%.pdf} dirs
|
||||||
|
|
||||||
dirs:V:
|
dirs:V:
|
||||||
for(i in $DIRS) @{
|
for(i in $DIRS) @{
|
||||||
|
@ -136,3 +138,11 @@ IGN=${IGNHTML:%=%.html} ${IGNHTML:%=%.install}
|
||||||
$IGN:QV:
|
$IGN:QV:
|
||||||
# nothing
|
# nothing
|
||||||
|
|
||||||
|
clean:V:
|
||||||
|
clean=`{
|
||||||
|
for(i in $ALLPS $PDF){
|
||||||
|
echo $i
|
||||||
|
} | grep -v 'acme|venti|fig.\.ps'
|
||||||
|
}
|
||||||
|
rm -f $clean
|
||||||
|
@{ cd fs && mk clean }
|
||||||
|
|
|
@ -1,19 +1,21 @@
|
||||||
</sys/doc/fonts
|
</sys/doc/fonts
|
||||||
|
|
||||||
default:V: sam.ps sam.tut.out
|
default:V: sam.ps sam.pdf
|
||||||
|
|
||||||
sam.ps:D: sam.ms fig1.ps fig2.ps fig3.ps fig4.ps fig5.pic fig6.pic fig7.pic refs
|
sam.ps:D: sam.ms fig1.ps fig2.ps fig3.ps fig4.ps fig5.pic fig6.pic fig7.pic refs
|
||||||
{echo $FONTS; cat sam.ms refs} | pic | tbl | troff -ms -mpictures | lp -dstdout >sam.ps
|
{echo $FONTS; cat sam.ms refs} | pic | tbl | troff -ms -mpictures | lp -dstdout >sam.ps
|
||||||
../cleanps sam.ps
|
../cleanps sam.ps
|
||||||
|
|
||||||
|
%.pdf:D: %.ps
|
||||||
|
cat ../docfonts $stem.ps >_$stem.ps
|
||||||
|
# distill _$stem.ps && mv _$stem.pdf $stem.pdf
|
||||||
|
ps2pdf _$stem.ps $stem.pdf && rm -f _$stem.ps
|
||||||
|
|
||||||
sam.trout:D: sam.ms fig1.ps fig2.ps fig3.ps fig4.ps fig5.pic fig6.pic fig7.pic refs
|
sam.trout:D: sam.ms fig1.ps fig2.ps fig3.ps fig4.ps fig5.pic fig6.pic fig7.pic refs
|
||||||
{echo $FONTS; cat sam.ms refs} | pic | tbl | troff -ms -mpictures >sam.trout
|
{echo $FONTS; cat sam.ms refs} | pic | tbl | troff -ms -mpictures >sam.trout
|
||||||
|
|
||||||
sam.html:D: sam.ms fig1.ps fig2.ps fig3.ps fig4.ps fig5.pic fig6.pic fig7.pic refs
|
sam.html:D: sam.ms fig1.ps fig2.ps fig3.ps fig4.ps fig5.pic fig6.pic fig7.pic refs
|
||||||
pic sam.ms refs | tbl | htmlroff -ms -mhtml >sam.html
|
pic sam.ms refs | tbl | htmlroff -ms -mhtml >sam.html
|
||||||
|
|
||||||
sam.tut.out:D: sam.tut
|
|
||||||
troff -ms sam.tut > sam.tut.out
|
|
||||||
|
|
||||||
clean:V:
|
clean:V:
|
||||||
rm -f sam.ps
|
rm -f sam.ps
|
||||||
|
|
Loading…
Reference in a new issue