egroupware/doc/en_US/sgml/FAQ/Makefile

65 lines
1.1 KiB
Makefile
Raw Normal View History

2002-01-03 22:05:45 +01:00
# Makefile for phpGroupware FAQ
# Written by Brandon Neill
# Copyright 2002
INSTDIR ?= ../..
all: html ps txt
ps: FAQ.sgml
sgmltools -b ps FAQ.sgml
@touch ps
txt: FAQ.sgml
sgmltools -b txt FAQ.sgml
@touch txt
html: FAQ.sgml
sgmltools -b onehtml FAQ.sgml
@touch html
install:
@if [ -e FAQ.txt ]; \
then \
2002-01-04 01:25:11 +01:00
echo "Moving FAQ.txt to $(INSTDIR)"; \
mv FAQ.txt $(INSTDIR)/; \
2002-01-03 22:05:45 +01:00
fi
-@if [ -e FAQ.html ]; \
then \
if [ ! -d $(INSTDIR)/html/FAQ ]; \
then \
mkdir -p $(INSTDIR)/html/FAQ; \
fi; \
2002-01-04 01:25:11 +01:00
echo "Tidying HTML files and moving them to $(INSTDIR)/html"; \
2002-01-03 22:05:45 +01:00
echo "You may get an ignored error here, it's OK";\
tidy -i -clean <FAQ.html >$(INSTDIR)/html/FAQ/FAQ.html 2> /dev/null; \
2002-01-04 01:25:11 +01:00
rm FAQ.html; \
2002-01-03 22:05:45 +01:00
fi
@if [ -e FAQ.ps ]; \
then \
2002-01-04 01:25:11 +01:00
echo "Moving FAQ.ps to $(INSTDIR)/ps"; \
2002-01-03 22:05:45 +01:00
if [ ! -d $(INSTDIR)/ps ]; \
then \
mkdir $(INSTDIR)/ps; \
fi; \
2002-01-04 01:25:11 +01:00
mv FAQ.ps $(INSTDIR)/ps; \
2002-01-03 22:05:45 +01:00
fi
clean:
@if [ -e FAQ.txt ];\
then \
rm FAQ.txt ;\
fi
2002-01-04 01:25:11 +01:00
-rm txt
2002-01-03 22:05:45 +01:00
@if [ -e FAQ.html ]; \
then \
rm FAQ.html; \
fi
2002-01-04 01:25:11 +01:00
-rm html
2002-01-03 22:05:45 +01:00
@if [ -e FAQ.ps ]; \
then \
rm FAQ.ps; \
fi
2002-01-04 01:25:11 +01:00
-rm ps
2002-01-03 22:05:45 +01:00