#
# 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)
#WP_FILES = ntcb4001.wp
#X_FILES = ntcb4001.x
#HTML_FILES = ntcb4001.html
.SUFFIXES: .wp .x .html
#all: $(X_FILES) $(HTML_FILES)
all: $(HTML_FILES)
.wp.x:
wp2forth $< > $@
.x.html:
forth -q html.f83.cb $< -s nop > $@ || rm -f $@