]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/man/mkfile
merge
[plan9front.git] / sys / man / mkfile
index b9a146cf2887287f7b71060ce73f3382869c0da1..3bb6aaa51fa392f43db2fc3375ee618ad10ee0f5 100644 (file)
@@ -13,7 +13,7 @@ indices:V:
        $LIB/mksearchindex > searchindex        # index for man2html searches
 
 permind:V:
-       rm -f /sys/lib/man/permind/toc
+       rm -f $LIB/permind/toc
        {
                echo .am TH
                echo .tm '\\$1' '\\$2' '\\n%'
@@ -35,7 +35,7 @@ permind:V:
                                }
                        builtin cd ..
                }
-       } | troff -$MAN > /dev/null >[2] /sys/lib/man/permind/toc
+       } | troff -$MAN > /dev/null >[2] $LIB/permind/toc
        builtin cd $LIB/permind
        rm -f out
        mk out > /dev/null >[2] /dev/null
@@ -106,5 +106,16 @@ print.out:V: permind
                {echo -n $FONTS; cat $LIB/colophon} | troff
        } > print.out
 
+%.ps:  print.out
+       lp -dstdout $prereq >$target
+
+%.gz:  %
+       gzip $prereq
+
+%.pdf: %.ps
+       ps2pdf $prereq $target
+
 clean:V:
-       rm -f man.out
+       rm -f man.out print.out searchindex $LIB/permind/toc $LIB/lookman/index [0-8]^/INDEX^('' .html)
+       builtin cd $LIB/permind
+       mk clean