website for lusty lavender: http://eln.ja13.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
359 B

LIBDIR:=lib
LIBS:=$(sort $(wildcard $(LIBDIR)/*.m4))
SRCS:=$(wildcard *.m4)
OUTS:=$(SRCS:.m4=.html)
M4_DEFINES:=-Denv_libdir="$(LIBDIR)" -Denv_libs="$(LIBS)" -Denv_srcs="$(SRCS)" -Denv_outs="$(OUTS)"
website: _force $(OUTS)
_force:
.PHONY: website _force
$(OUTS): _force
%.html: %.m4
m4 -P $(M4_DEFINES) -Denv_filename="$<" $(M4FLAGS) $(LIBS) $< > $@