From 61ec5823d7b64fcdfab8c0ddb959bd68dd90e07a Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 7 Jul 2020 20:34:19 +0200 Subject: [PATCH] build: Avoid "html" rule with empty recipe. This was over-engineered, and only one of the three rules which create .html files depends on both the header and the footer. --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 4fbc36b..230a966 100644 --- a/Makefile +++ b/Makefile @@ -100,16 +100,13 @@ lopsubex: $(lopsubex_objs) $(REALNAME) # web html := $(addprefix web/, $(addsuffix .html, \ index lopsub-api lopsubgen.1 lopsubex.1 $(m4_man_pages:.gz=))) -$(html): $(addprefix web/, $(addsuffix .html, header footer)) - www: $(html) - -web/lopsub-api.html: lopsub.h.m4 +web/lopsub-api.html: lopsub.h.m4 web/header.html web/footer.html $(M4) -DOUTPUT_MODE=HTML web/header.html $(gendoc) \ $< web/footer.html > $@ web/index.html: web/lopsub.7.html $(LN) -s $(notdir $<) $@ -web/%.html: %.gz +web/%.html: %.gz web/header.html $(CP) web/header.html $@ $(ZCAT) $< | $(GROFF) -m man -Thtml | sed -e '1,/^/d' >> $@ -- 2.39.2