slweb

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

чување 9729cf9b1bf0634c8c3c06674620491c63fe1588
родитељ ea3ec5fa35fee4dd165a3cc69f7f733246ff8551
Аутор: Страхиња Радић <contact@strahinja.org>
Датум:   Sat,  9 Mar 2024 21:32:39 +0100

Use workaround for make -C (non-POSIX)

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

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

diff --git a/Makefile b/Makefile @@ -11,7 +11,7 @@ include config.mk all: $(PROG) $(MANPAGE) examples examples: - make -C examples all + cd examples && make all date: sh lib/makedate @@ -35,11 +35,11 @@ $(PROG): $(OBJS) $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) clean: - make -C examples clean + cd examples && make clean && cd - rm -f version date version.h *.o *.xz *~ $(PROG) $(MANPAGE) install: all - make -C examples install + cd examples && make install && cd - umask 022 $(INSTALL) -Dm 0644 $(MANPAGE) $(MANPREFIX)/man1/$(MANPAGE) $(INSTALL) -Dm 0644 README $(DOCDIR)/README @@ -47,7 +47,7 @@ install: all $(INSTALL) -Dm 0755 $(PROG) $(BINDIR)/$(PROG) uninstall: - make -C examples uninstall + cd examples && make 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) - make -C includes all + cd includes && make all clean: - make -C includes clean + cd includes && make clean && cd - find . -name '*.html' -exec rm {} \; rm -f *~