]> projects.mako.cc - fspm_howto/blobdiff - render_sgml
changed render_sgml to be a makefile and added a bunch of
[fspm_howto] / render_sgml
index 7ce4f1d38c178dd5f89c64e92b01f51907a0d666..3753dfdfbb3c424b4b7a952db30bf90838b8f805 100755 (executable)
@@ -1,14 +1,23 @@
-#!/usr/bin/zsh
-mkdir -f ./tmp
-sgmltools --backend=onehtml FreeSoftwareProjectManagementHOWTO.sgml
-mv FreeSoftwareProjectManagementHOWTO.html ./tmp/FreeSoftwareProjectManagement-HOWTO.html
-sgmltools --backend=html FreeSoftwareProjectManagementHOWTO.sgml
-mv FreeSoftwareProjectManagementHOWTO ./tmp/FreeSoftwareProjectManagement-HOWTO
-sgmltools --backend=txt FreeSoftwareProjectManagementHOWTO.sgml
-mv FreeSoftwareProjectManagementHOWTO.txt ./tmp/FreeSoftwareProjectManagement-HOWTO.txt
-sgmltools --backend=ps FreeSoftwareProjectManagementHOWTO.sgml
-ps2pdf FreeSoftwareProjectManagementHOWTO.ps
-mv FreeSoftwareProjectManagementHOWTO.ps ./tmp/FreeSoftwareProjectManagement-HOWTO.ps
-mv FreeSoftwareProjectManagementHOWTO.pdf ./tmp/FreeSoftwareProjectManagement-HOWTO.pdf
-sgmltools --backend=rtf FreeSoftwareProjectManagementHOWTO.sgml
-mv FreeSoftwareProjectManagementHOWTO.rtf ./tmp/FreeSoftwareProjectManagement-HOWTO.rtf
+#!/usr/bin/make -f
+build:
+       sgmltools -v --backend=onehtml FreeSoftwareProjectManagementHOWTO.sgml
+       sgmltools -v --backend=html FreeSoftwareProjectManagementHOWTO.sgml
+       sgmltools -v --backend=txt FreeSoftwareProjectManagementHOWTO.sgml
+       sgmltools -v --backend=ps FreeSoftwareProjectManagementHOWTO.sgml
+       ps2pdf FreeSoftwareProjectManagementHOWTO.ps
+       sgmltools -v --backend=rtf FreeSoftwareProjectManagementHOWTO.sgml
+
+move:
+       mkdir -p ./tmp
+       mv FreeSoftwareProjectManagementHOWTO.html ./tmp/FreeSoftwareProjectManagement-HOWTO.html
+       mv FreeSoftwareProjectManagementHOWTO ./tmp/FreeSoftwareProjectManagement-HOWTO
+       mv FreeSoftwareProjectManagementHOWTO.txt ./tmp/FreeSoftwareProjectManagement-HOWTO.txt
+       mv FreeSoftwareProjectManagementHOWTO.ps ./tmp/FreeSoftwareProjectManagement-HOWTO.ps
+       mv FreeSoftwareProjectManagementHOWTO.pdf ./tmp/FreeSoftwareProjectManagement-HOWTO.pdf
+       mv FreeSoftwareProjectManagementHOWTO.rtf ./tmp/FreeSoftwareProjectManagement-HOWTO.rtf
+
+install: build move
+
+clean:
+       rm -rf FreeSoftwareProjectManagementHOwTO
+       rm -f FreeSoftwareProjectManagementHOWTO.html FreeSoftwareProjectManagement-HOWTO.txt FreeSoftwareProjectManagement-HOWTO.ps FreeSoftwareProjectManagement-HOWTO.pdf FreeSoftwareProjectManagement-HOWTO.rtf

Benjamin Mako Hill || Want to submit a patch?