From 08c108b32ee7c84e63b8af9a24f20fa1ed310bfd Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 19 May 2024 21:23:35 +0200 Subject: [PATCH] build: Add target www. Just a simple shortcut to build the web page with m4. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 403fbcc..4daaec7 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,8 @@ CHMOD := chmod B := build all := micoforia micoforia.8 all: $(all) +www := $(B)/index.html +www: $(www) units := micoforia util version micoforia.lsg deps := $(addprefix $(B)/, $(addsuffix .d, $(units))) @@ -147,7 +149,7 @@ install install-strip: all $(INSTALL_DATA) micoforia.8 $(DESTDIR)$(mandir) clean: - $(RM) $(B)/*.o $(all) + $(RM) $(B)/*.o $(all) $(www) distclean: clean $(RM) -r $(B) maintainer-clean: @@ -157,5 +159,5 @@ README: README.m4 Makefile $(B)/config.mak @$(M4) $< .PRECIOUS: $(B)/%.lsg.c $(B)/%.lsg.h $(B)/%.8 -.PHONY: all clean install distclean maintainer-clean README +.PHONY: all www clean install distclean maintainer-clean README -include Makefile.local -- 2.39.5