#
# process #include directores in .html files
# in fashion of Apache's SSI includes
#
# the tags: <!-- #include virtual="*" --> are replaced by content of a file
# 

.SUFFIXES: .sgml .html

TARGETS= munipack.html features.html download.html docs.html \
         basic.html tutorial.html external.html classics.html \
         cbasic.html ctutorial.html colorspace.html colorfits.html \
         itone.html guide.html faq.html fitsut.html vobs.html \
         astrometry.html history.html modules.html

all: $(TARGETS)

install: all
	ln -sf munipack.html index.html

.ONESHELL:
mini:
	for A in Screenshot-*.png; do \
           convert $${A} -resize 300x200 $${A%.png}-mini.png; \
        done
	convert big_logo.png -resize 100x100 title_logo.png

clean:
	rm -f $(TARGETS); rm -f *~; Screenshot-*-mini.png; rm title_logo.png; \
        rm -f index.html

.sgml.html:
	awk -f include.awk $< >$@
