# ~/public_html/gifs/Makefile
# The berklix*.eps files are not used to display in normal web pages,
# they were just there so eg Graham can anti alias the arrow.
# They are generated by xfig in ~/job/inc/

SUBDIR += card

.if !target(cleanJJLATER)
# Do not clean gifs/qr/berklix_com.jpg used by http://www.berklix.com/
SUBDIR += qr
.endif

clean:
	@echo "JJLATER remove this bodge installed 2017-08-11"
	@# but first copy dir, run a clean, run a check links,
	@# see if anything inadvertently stripped by berklix2.mk macros
	rm -f MFI_Michael_Faraday_blue_Silhouette.tiff bim_2000-11-25.tiff \
	 fire_eighth.tiff fire_quarter.tiff gnu-head-sm.tiff \
	 jhsmeetup.tiff nymphenburg_sekt_quarter.tiff vcfe_2004_full.tiff \
	 vcfe_2004_small.tiff wasp.tiff

to_invert:
	@echo flag_de_uk.gif \
	 flag_uk_de.gif flag_uk_de_icon.gif flag_uk_de_icon_v.gif
	@# Inverted versions of these have not yet been produced.

all:
	true

pdf tif:	# avoid building pdf & tif from .jpg
	@true

fetch:
	@echo "Fetching graphics for ${STUFF} from ~jhs/job/inc/"
	cd ~jhs/job/inc/ && make install

Test.html:	Makefile *.gif */*.gif */*/*.gif
	echo -n "<!DOCTYPE html><HTML><HEAD></HEAD><BODY>" > ${.CURDIR}/$@
	echo    "<!-- DO NOT EDIT -->$@ generated by Makefile `date`<br>" >> ${.CURDIR}/$@
	echo -n "To allow easy spotting if some .gif "	>> ${.CURDIR}/$@
	echo    "are not transparent background."	>> ${.CURDIR}/$@
	echo "<table border="1">" >> ${.CURDIR}/$@
	for i in `find . -type f -name \*.gif | sort ` ; \
		do \
		echo -n "<TR><TD BGCOLOR="BROWN"><A HREF=$$i>$$i<BR>"	>> ${.CURDIR}/$@;\
		echo -n "<IMG ALT=dummy SRC=$$i></A></TD>"		>> ${.CURDIR}/$@;\
		echo -n "<TD BGCOLOR="WHITE"><A HREF=$$i>$$i<BR>"	>> ${.CURDIR}/$@;\
		echo    "<IMG ALT=dummy SRC=$$i></A></TD></TR>"		>> ${.CURDIR}/$@;\
		done
	echo "</TABLE></BODY></HTML>"	>> ${.CURDIR}/$@

.include <berklix.mk>
