diff --git a/doc/en_US/sgml/admin/Makefile b/doc/en_US/sgml/admin/Makefile new file mode 100644 index 0000000000..e9d8357bf3 --- /dev/null +++ b/doc/en_US/sgml/admin/Makefile @@ -0,0 +1,69 @@ +# Makefile for phpGroupware phpGroupWare-Admin-Manual +# Written by Brandon Neill +# Copyright 2002 + +INSTDIR ?= ../.. + +all: html ps txt + +ps: phpGroupWare-Admin-Manual.sgml + sgmltools -b ps phpGroupWare-Admin-Manual.sgml + @touch ps + +txt: phpGroupWare-Admin-Manual.sgml + sgmltools -b txt phpGroupWare-Admin-Manual.sgml + @touch txt + +html: phpGroupWare-Admin-Manual.sgml + sgmltools -b html phpGroupWare-Admin-Manual.sgml + @touch html + +install: + @if [ -e phpGroupWare-Admin-Manual.txt ]; \ + then \ + echo "Moving phpGroupWare-Admin-Manual.txt to $(INSTDIR)"; \ + mv phpGroupWare-Admin-Manual.txt $(INSTDIR)/; \ + fi + -@if [ -e phpGroupWare-Admin-Manual ]; \ + then \ + if [ ! -d $(INSTDIR)/html/admin ]; \ + then \ + mkdir -p $(INSTDIR)/html/admin; \ + else \ + rm $(INSTDIR)/html/user/*.html; \ + fi; \ + echo "Tidying HTML files and moving them to $(INSTDIR)/html/admin"; \ + echo "You may get an ignored error here, it's OK";\ + for file in `ls -1 phpGroupWare-Admin-Manual`; \ + do \ + tidy -i -clean < phpGroupWare-Admin-Manual/$$file >$(INSTDIR)/html/admin/$$file 2> /dev/null; \ + done; \ + rm -r phpGroupWare-Admin-Manual; \ + fi + @if [ -e phpGroupWare-Admin-Manual.ps ]; \ + then \ + echo "Moving phpGroupWare-Admin-Manual.ps to $(INSTDIR)/ps"; \ + if [ ! -d $(INSTDIR)/ps ]; \ + then \ + mkdir $(INSTDIR)/ps; \ + fi; \ + mv phpGroupWare-Admin-Manual.ps $(INSTDIR)/ps; \ + fi + +clean: + @if [ -e phpGroupWare-Admin-Manual.txt ];\ + then \ + rm phpGroupWare-Admin-Manual.txt ;\ + fi + -rm txt + @if [ -e phpGroupWare-Admin-Manual ]; \ + then \ + rm -r phpGroupWare-Admin-Manual; \ + fi + -rm html + @if [ -e phpGroupWare-Admin-Manual.ps ]; \ + then \ + rm phpGroupWare-Admin-Manual.ps; \ + fi + -rm ps + diff --git a/doc/en_US/sgml/user/Makefile b/doc/en_US/sgml/user/Makefile new file mode 100644 index 0000000000..dd7c3a0e78 --- /dev/null +++ b/doc/en_US/sgml/user/Makefile @@ -0,0 +1,68 @@ +# Makefile for phpGroupware phpGroupWare-User-Manual +# Written by Brandon Neill +# Copyright 2002 +INSTDIR ?= ../.. + +all: html ps txt + +ps: phpGroupWare-User-Manual.sgml + sgmltools -b ps phpGroupWare-User-Manual.sgml + @touch ps + +txt: phpGroupWare-User-Manual.sgml + sgmltools -b txt phpGroupWare-User-Manual.sgml + @touch txt + +html: phpGroupWare-User-Manual.sgml + sgmltools -b html phpGroupWare-User-Manual.sgml + @touch html + +install: + @if [ -e phpGroupWare-User-Manual.txt ]; \ + then \ + echo "Moving phpGroupWare-User-Manual.txt to $(INSTDIR)"; \ + mv phpGroupWare-User-Manual.txt $(INSTDIR)/; \ + fi + -@if [ -e phpGroupWare-User-Manual ]; \ + then \ + if [ ! -d $(INSTDIR)/html/user ]; \ + then \ + mkdir -p $(INSTDIR)/html/user; \ + else \ + rm $(INSTDIR)/html/user/*.html; \ + fi; \ + echo "Tidying HTML files and moving them to $(INSTDIR)/html/user"; \ + echo "You may get an ignored error here, it's OK";\ + for file in `ls -1 phpGroupWare-User-Manual`; \ + do \ + tidy -i -clean < phpGroupWare-User-Manual/$$file >$(INSTDIR)/html/user/$$file 2> /dev/null; \ + done; \ + rm -r phpGroupWare-User-Manual; \ + fi + @if [ -e phpGroupWare-User-Manual.ps ]; \ + then \ + echo "Moving phpGroupWare-User-Manual.ps to $(INSTDIR)/ps"; \ + if [ ! -d $(INSTDIR)/ps ]; \ + then \ + mkdir $(INSTDIR)/ps; \ + fi; \ + mv phpGroupWare-User-Manual.ps $(INSTDIR)/ps; \ + fi + +clean: + @if [ -e phpGroupWare-User-Manual.txt ];\ + then \ + rm phpGroupWare-User-Manual.txt ;\ + fi + -rm txt + @if [ -e phpGroupWare-User-Manual ]; \ + then \ + rm -r phpGroupWare-User-Manual; \ + fi + -rm html + @if [ -e phpGroupWare-User-Manual.ps ]; \ + then \ + rm phpGroupWare-User-Manual.ps; \ + fi + -rm ps +