# Makefile file for formhtml.pl

include Makefile.formhtml.rde

# ܸڡΥ
JP = introduction.bhtml porttest.bhtml progex.bhtml
JPINDEX = index_jp.bhtml

# ˱ѸڡΥ
EN = 
ENINDEX = indexw_en.bhtml

all: jpnormal jpsimple

help:
	$(FORMHTML) /dev/null

jpnormal: $(JP)
	$(FORMHTML) $(JNFLAGS) $(JNINDEX) $(JP)
	$(FORMHTML) $(JNFLAGS) $(NINDEX) $(JPINDEX)
#	touch jpnormal

jpsimple: $(JP)
	$(FORMHTML) $(JSFLAGS) $(JSINDEX) $(JP)
	$(FORMHTML) $(JSFLAGS) $(NINDEX) $(JPINDEX)
#	touch jpsimple

ennormal: $(EN)
	$(FORMHTML) $(ENFLAGS) $(EINDEX) $(EN)
	$(FORMHTML) $(ENFLAGS) $(NINDEX) $(EPINDEX)
#	touch ennormal

ensimple: $(EN)
	$(FORMHTML) $(ESFLAGS) $(EINDEX) $(EN)
	$(FORMHTML) $(ESFLAGS) $(NINDEX) $(EPINDEX)
#	touch ensimple


#
#   Cleaning
#

DELETEOBJ= '~$$\|\.tgi$$\|\.eps\.gif$$\|thumbFH_'

clean:
	@echo These files will cleared with command: make doclean
	@find . -type f | grep $(DELETEOBJ)

doclean:
	@find . -type f | grep $(DELETEOBJ)
	@find . -type f | grep $(DELETEOBJ) | xargs rm
