Makefiles for user and admin guides

This commit is contained in:
brandonne 2002-01-04 00:27:13 +00:00
parent 766daf764e
commit 57ca6811d9
2 changed files with 137 additions and 0 deletions

View File

@ -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

View File

@ -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