# ~jhs/public_html/bim/Makefile
# NO_SIDEBAR=YES
SUBDIR += boerse
SUBDIR += conf
SUBDIR += install
SUBDIR += leaflet
SUBDIR += stammtisch
SUBDIR += systems
SUBDIR += talks

NO_OBJ=true
# JJLATER NO_OBJ probably still needed for .m4 to .lmth

TARGS=	indx.e.lmth indx.g.lmth indx.e.html indx.g.html index.html \
	contributors.html enquiries.html \
	events.html list.html contributors.html membership.html organisation.html \
	other_bsd.html other_clubs.html projects.html systems2001.html \
	what_we_are.html index.html

all:	${TARGS} 
	@echo need to add more english + german language filtering
	@echo lok at httpd.conf to decide best way.

index.html:	
	ln -s indx.e.html ${.CURDIR}/$@

STUFF= indx.m4 defines ${LMTH_TAIL} Makefile
indx.e.lmth:	${STUFF}
	echo ""		> ${.TARGET}
	m4 -DENGLISH indx.m4 >> ${.TARGET}
	@# m4 -DENGLISH indx.m4 | \
	@#	 grep -i -v '</BODY>' | grep -i -v '</HTML>' >> ${.TARGET}
	@# cat ${LMTH_TAIL}		>> ${.TARGET}

indx.g.lmth:	${STUFF}
	echo "" 		> ${.TARGET}
	m4 -DGERMAN indx.m4 >> ${.TARGET}
	@# m4 -DGERMAN indx.m4 | \
	@# 	grep -i -v '</BODY>' | grep -i -v '</HTML>' >> ${.TARGET}
	@# cat ${LMTH_TAIL}		>> ${.TARGET}

projects.lmth:	projects.m4 defines
	m4 -DENGLISH projects.m4	> ${.TARGET}
what_we_are.lmth:	what_we_are.m4 defines
	m4 -DENGLISH what_we_are.m4	> ${.TARGET}
contributors.lmth:	contributors.m4 defines
	m4 -DENGLISH contributors.m4	> ${.TARGET}
membership.lmth:	membership.m4 defines
	m4 -DENGLISH membership.m4	> ${.TARGET}
events.lmth:	events.m4 defines
	m4 -DENGLISH events.m4		> ${.TARGET}
enquiries.lmth:	enquiries.m4 defines
	m4 -DENGLISH enquiries.m4	> ${.TARGET}
organisation.lmth:	organisation.m4 defines
	m4 -DENGLISH organisation.m4	> ${.TARGET}
systems2001.lmth:	systems2001.m4 defines
	m4 -DENGLISH systems2001.m4	> ${.TARGET}
# install:	all
# 	@echo "No install done, since using virtual domains."
clean:
	@echo "If you really want to wreck web files: make cleanmore"
cleanmore:
	rm -f ${TARGS}
Inc:
	ln -s /site/usr/local/www/Data/virtual/Inc
	@# Data gets also used by /usr/local/www/data/virtual/jhs/bim

.include <berklix.mk>
