slweb

Једноставни генератор статичких веб страна
git clone https://git.sr.ht/~strahinja/slweb
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување 38c7b96f506f0b5101765dc3b4b4106b1b538dcf
родитељ 89655e3b215393d76fa3c02e8883cc9e213cc895
Аутор: Страхиња Радић <contact@strahinja.org>
Датум:   Mon, 11 Mar 2024 20:24:43 +0100

Add -e to make called from Makefile's

Signed-off-by: Страхиња Радић <contact@strahinja.org>

Diffstat:
MMakefile | 8++++----
Mexamples/Makefile | 4++--
измењених датотека: 2, додавања: 6(+), брисања: 6(-)

diff --git a/Makefile b/Makefile @@ -12,7 +12,7 @@ all: $(PROG) $(MANPAGE) examples makedate makeversion if [ -f .rebuild ]; then rm .rebuild; make -e all; else true; fi examples: - cd examples && make all + cd examples && make -e all date: sh lib/makedate @@ -38,11 +38,11 @@ $(PROG): $(OBJS) $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) clean: - cd examples && make clean && cd - + cd examples && make -e clean && cd - rm -f version date version.h *.o *.xz *~ $(PROG) $(MANPAGE) install: all - cd examples && make install && cd - + cd examples && make -e install && cd - umask 022 $(INSTALL) -Dm 0644 $(MANPAGE) $(MANPREFIX)/man1/$(MANPAGE) $(INSTALL) -Dm 0644 README $(DOCDIR)/README @@ -50,7 +50,7 @@ install: all $(INSTALL) -Dm 0755 $(PROG) $(BINDIR)/$(PROG) uninstall: - cd examples && make uninstall && cd - + cd examples && make -e uninstall && cd - rm -f $(MANPREFIX)/man1/$(MANPAGE) rmdir $(MANPREFIX)/man1 2>/dev/null || true rmdir $(MANPREFIX) 2>/dev/null || true diff --git a/examples/Makefile b/examples/Makefile @@ -6,10 +6,10 @@ include ../config.mk ../slweb -d $(<D) $< > $@ all: $(HTMLS) - cd includes && make all + cd includes && make -e all clean: - cd includes && make clean && cd - + cd includes && make -e clean && cd - find . -name '*.html' -exec rm {} \; rm -f *~