SOURCE=hotplug.mgp
HTML_IMAGE_TYPE=png
#HTML_IMAGE_TYPE=jpg


unknown_target:
	@echo "This Makefile can generate html or postscript versions of the"
	@echo "Hotplug OLS talk."
	@echo "run 'make html' to generate html"
	@echo "run 'make ps' to generate postscript"
	@echo "or run 'make all' to generate everything"

all:	html ps

html: $(SOURCE)
	mkdir html
	mgp -D html -E $(HTML_IMAGE_TYPE) $(SOURCE)

ps: $(SOURCE)
	mkdir ps
	mgp2ps -f ps/hotplug.ps -c $(SOURCE)

clean:
	rm -rf html/
	rm -rf ps/
