#
# Convert all files in this directory that have a .md suffix
#
# Note: uses command line utilities:
# + "markdown" for building
#
# type "make" to build html
# type "make clean" to remove preliminary files and such
#

PANDOC= pandoc
SRC := $(wildcard *.md)
HTML_DST=\
 $(SRC:.md=.html)

all : $(HTML_DST)

%.html : %.md
	/bin/rm -f $@
	$(PANDOC) -s $< > $@
	chmod uog-w $@
	chmod uog+x .

clean:
	/bin/rm -f $(HTML_DST)
