1# Makefile for phpGroupware phpGroupWare-Admin-Manual 2# Written by Brandon Neill 3# Copyright 2002 4 5INSTDIR ?= ../.. 6 7all: html ps txt 8 9ps: phpGroupWare-Admin-Manual.sgml 10 sgmltools -b ps phpGroupWare-Admin-Manual.sgml 11 @touch ps 12 13txt: phpGroupWare-Admin-Manual.sgml 14 sgmltools -b txt phpGroupWare-Admin-Manual.sgml 15 @touch txt 16 17html: phpGroupWare-Admin-Manual.sgml 18 sgmltools -b html phpGroupWare-Admin-Manual.sgml 19 @touch html 20 21install: 22 @if [ -e phpGroupWare-Admin-Manual.txt ]; \ 23 then \ 24 echo "Moving phpGroupWare-Admin-Manual.txt to $(INSTDIR)"; \ 25 mv phpGroupWare-Admin-Manual.txt $(INSTDIR)/; \ 26 fi 27 -@if [ -e phpGroupWare-Admin-Manual ]; \ 28 then \ 29 if [ ! -d $(INSTDIR)/html/admin ]; \ 30 then \ 31 mkdir -p $(INSTDIR)/html/admin; \ 32 else \ 33 rm $(INSTDIR)/html/user/*.html; \ 34 fi; \ 35 echo "Tidying HTML files and moving them to $(INSTDIR)/html/admin"; \ 36 echo "You may get an ignored error here, it's OK";\ 37 for file in `ls -1 phpGroupWare-Admin-Manual`; \ 38 do \ 39 tidy -i -clean < phpGroupWare-Admin-Manual/$$file >$(INSTDIR)/html/admin/$$file 2> /dev/null; \ 40 done; \ 41 rm -r phpGroupWare-Admin-Manual; \ 42 fi 43 @if [ -e phpGroupWare-Admin-Manual.ps ]; \ 44 then \ 45 echo "Moving phpGroupWare-Admin-Manual.ps to $(INSTDIR)/ps"; \ 46 if [ ! -d $(INSTDIR)/ps ]; \ 47 then \ 48 mkdir $(INSTDIR)/ps; \ 49 fi; \ 50 mv phpGroupWare-Admin-Manual.ps $(INSTDIR)/ps; \ 51 fi 52 53clean: 54 @if [ -e phpGroupWare-Admin-Manual.txt ];\ 55 then \ 56 rm phpGroupWare-Admin-Manual.txt ;\ 57 fi 58 -rm txt 59 @if [ -e phpGroupWare-Admin-Manual ]; \ 60 then \ 61 rm -r phpGroupWare-Admin-Manual; \ 62 fi 63 -rm html 64 @if [ -e phpGroupWare-Admin-Manual.ps ]; \ 65 then \ 66 rm phpGroupWare-Admin-Manual.ps; \ 67 fi 68 -rm ps 69 70