From 6a078fc879c7720ceefc1797f2e3be9efaa339ee Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 9 May 2024 02:12:17 +0200 Subject: [PATCH] build: New phony target "www". This saves some typing as the simple "make www" now builds index.html and the html version of the man page. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cc1548b..c06fdec 100644 --- a/Makefile +++ b/Makefile @@ -67,8 +67,10 @@ c_generated := $(B)/$(PACKAGE).lsg $(B)/version objs := $(addsuffix .o, $(c_generated) $(addprefix $(B)/, $(c_source))) deps := $(objs:.o=.d) all := $(PACKAGE) $(PACKAGE).1.gz +www := $(B)/index.html $(B)/$(PACKAGE).1.html all: $(all) +www: $(www) man: $(PACKAGE).1.gz $(objs): $(B)/$(PACKAGE).lsg.h Makefile -include $(deps) @@ -112,7 +114,7 @@ $(B)/%.o: %.c $(call SAY, CC $<) $(CC_CMD) -.PHONY: all clean install README +.PHONY: all www clean install README .PRECIOUS: $(B)/%.lsg.c $(B)/%.lsg.h $(B)/%.suite $(B)/%.1 $(B)/$(PACKAGE).suite: $(PACKAGE).suite.m4 Makefile $(call SAY, M4 $<) -- 2.39.5