-#!/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 -f FreeSoftwareProjectManagementHOWTO.html ./tmp/FreeSoftwareProjectManagement-HOWTO.html
+ mv -f FreeSoftwareProjectManagementHOWTO ./tmp/FreeSoftwareProjectManagement-HOWTO
+ mv -f FreeSoftwareProjectManagementHOWTO.txt ./tmp/FreeSoftwareProjectManagement-HOWTO.txt
+ mv -f FreeSoftwareProjectManagementHOWTO.ps ./tmp/FreeSoftwareProjectManagement-HOWTO.ps
+ mv -f FreeSoftwareProjectManagementHOWTO.pdf ./tmp/FreeSoftwareProjectManagement-HOWTO.pdf
+ mv -f FreeSoftwareProjectManagementHOWTO.rtf ./tmp/FreeSoftwareProjectManagement-HOWTO.rtf
+ cp -f FreeSoftwareProjectManagementHOWTO.sgml ./tmp/FreeSoftwareProjectManagement-HOWTO.sgml
+ gzip -c ./tmp/FreeSoftwareProjectManagement-HOWTO.ps > ./tmp/FreeSoftwareProjectManagement-HOWTO.ps.gz
+ gzip -c ./tmp/FreeSoftwareProjectManagement-HOWTO.sgml > ./tmp/FreeSoftwareProjectManagement-HOWTO.sgml.gz
+
+install: build move
+
+clean:
+ rm -rf FreeSoftwareProjectManagementHOwTO
+ rm -f FreeSoftwareProjectManagementHOWTO.html FreeSoftwareProjectManagement-HOWTO.txt FreeSoftwareProjectManagement-HOWTO.ps FreeSoftwareProjectManagement-HOWTO.pdf FreeSoftwareProjectManagement-HOWTO.rtf
+ rm -rf ./tmp
\ No newline at end of file