stacinhtml

Static C in HTML - simple static site generator
git clone git://git.kocotian.pl/stacinhtml.git
Log | Files | Refs | README | LICENSE

commit ac0f0c8807b42a80be3a3321b6f6bf9e61fa7ccc
parent ff94dda1a472ea17c38437dbf425fa7f5ef204f1
Author: kocotian <kocotian@kocotian.pl>
Date:   Wed,  7 Apr 2021 09:37:20 +0200

Makefile changes

Diffstat:
MMakefile | 15+++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile @@ -28,13 +28,13 @@ pages: generator # == Section 1: Building a generator == -SRCLIB = util.c +SRCLIB = util.c assemble.c str.c OBJLIB = ${SRCLIB:.c=.o} SRC = compile.c EXE = ${SRC:.c=} -generator: buildoptions ${EXE} assemble.o +generator: buildoptions ${EXE} buildoptions: @echo build options: @@ -73,10 +73,13 @@ pages: ${OUT} ${OUT}: ${META} ${META}: ${IN} -${IN}: mkpagedirs +${IN}: ${METADIRS} ${OUTDIRS} -mkpagedirs: - mkdir -p $(OUTDIRS) $(METADIRS) +${OUTDIRS}: ${METADIRS} + mkdir -p $(OUTDIRS) + +${METADIRS}: ${INDIRS} + mkdir -p $(METADIRS) ${IN}: generator ${GENERATOR} @@ -84,7 +87,7 @@ ${METADIR}/%.c: ${INDIR}/%.stac ${GENERATOR} -o $@ $(subst $(METADIR),$(INDIR),$(@:.c=.stac)) ${METADIR}/%.bin: ${METADIR}/%.c - ${CC} -o $@ -I. $(@:.bin=.c) assemble.o + ${CC} -o $@ -I. $(@:.bin=.c) ${OBJLIB} ${OUTDIR}/%.html: ${METADIR}/%.bin ./$(subst $(OUTDIR),$(METADIR),$(@:.html=.bin)) > $@