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.

Makefile 359B

123456789101112131415161718
  1. LIBDIR:=lib
  2. LIBS:=$(sort $(wildcard $(LIBDIR)/*.m4))
  3. SRCS:=$(wildcard *.m4)
  4. OUTS:=$(SRCS:.m4=.html)
  5. M4_DEFINES:=-Denv_libdir="$(LIBDIR)" -Denv_libs="$(LIBS)" -Denv_srcs="$(SRCS)" -Denv_outs="$(OUTS)"
  6. website: _force $(OUTS)
  7. _force:
  8. .PHONY: website _force
  9. $(OUTS): _force
  10. %.html: %.m4
  11. m4 -P $(M4_DEFINES) -Denv_filename="$<" $(M4FLAGS) $(LIBS) $< > $@