# # Makefile for WP->HTML document conversion # # These next lines are for GNU Make. If you use this make, you don't # need to change this Makefile when adding new documents - it picks # up "*.wp" in the current directory. If you use some other make, # leave these lines commented out and use the set below them. # WP_FILES = $(wildcard *.wp) X_FILES = $(WP_FILES:%.wp=%.x) HTML_FILES = $(WP_FILES:%.wp=%.html) .SUFFIXES: .wp .x .html all: $(X_FILES) $(HTML_FILES) .wp.x: wp2forth $< > $@ .x.html: forth -q html.f83.wl $< -s nop > $@ || rm -f $@