FRMT=		frmt.pl
SGML2HTML=	sgml2html
TARGET=		/usr/local/home/panos/cactus.test
ICONDIR=	./img
ICONS=		bg.gif cactus3.gif envelope.gif hbar.gif home.gif htexts.gif info.gif \
		la0.gif la1.gif ra0.gif ra1.gif test.html texts.gif thbar.gif ua0.gif ua1.gif 

# Main target
all: index greek cronicles howto faq

index: index.sgml 
	# Making INDEX
	$(SGML2HTML) index.sgml
	$(FRMT) index
	#

greek: greek.sgml
	# Making GREEK
	$(SGML2HTML) greek.sgml
	$(FRMT) greek
	#

cronicles: cronicles.sgml
	# Making CRONICLES
	$(SGML2HTML) cronicles.sgml
	$(FRMT) cronicles
	#

howto: HHOWTO.sgml
	# Making Hellenic-HOWTO
	$(SGML2HTML)  HHOWTO.sgml
	$(FRMT)  HHOWTO
	#

faq: HFAQ.sgml
	# Making Linux-Hellenic-FAQ
	$(SGML2HTML)  HFAQ.sgml
	$(FRMT)  HFAQ
	#

icons: 
	if test ! -d $(TARGET); then mkdir $(TARGET); else true; fi 
	if test ! -d $(TARGET)/img; then mkdir $(TARGET)/img; else true; fi 
	if test ! -d $(TARGET)/doc; then mkdir $(TARGET)/doc; else true; fi 
	if test ! -d $(TARGET)/src; then mkdir $(TARGET)/src; else true; fi 
	cp *.html $(TARGET)
	cd $(ICONDIR); cp $(ICONS) $(TARGET)/$(ICONDIR)
	cd src; cp * $(TARGET)/src
	cd doc; cp * $(TARGET)/doc

install: icons
	cp *.html $(TARGET)
	

clean:
	rm *.html *.old

clean-old:
	rm *.old

