From 1be30282b4062745d63e85eec6c560666c0ac5ae Mon Sep 17 00:00:00 2001 From: Max Rees Date: Tue, 29 Dec 2020 21:24:04 -0500 Subject: Allow build to continue if help.h/manpages are already generated This would allow future distribution of tarballs that already have help.h and the doc/*.[0-9] manpages pre-generated. Such a tarball could then be built successfully with LUA=no. --- Make.rules | 2 +- src/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Make.rules b/Make.rules index 1f515ea..8d09926 100644 --- a/Make.rules +++ b/Make.rules @@ -287,7 +287,7 @@ __scdocs := $(addprefix $(obj)/,$(sort $(scdocs-y))) nontargets += $(__scdocs) docs += $(__scdocs) -$(__scdocs): $(obj)/%: $(src)/%.scd FORCE +$(__scdocs): $(obj)/%: $(src)/%.scd $(call if_changed,scdoc) #### diff --git a/src/Makefile b/src/Makefile index 4ce3750..497b6e4 100644 --- a/src/Makefile +++ b/src/Makefile @@ -97,7 +97,7 @@ else cmd_genhelp = echo \\\#define NO_HELP > $@ endif -$(obj)/help.h: $(src)/genhelp.lua $(wildcard doc/apk*.8.scd) FORCE +$(obj)/help.h: $(src)/genhelp.lua $(wildcard doc/apk*.8.scd) $(call if_changed,genhelp) CFLAGS_help.o := -I$(obj) -- cgit v1.2.3-60-g2f50