stacinhtml

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

commit 37692fdf8325a138e07fc4dca9aff6f10dd29473
parent cd4d169e0a0dfcea46d2c9cb42fed6fa8f9fe161
Author: kocotian <kocotian@kocotian.pl>
Date:   Mon, 22 Mar 2021 18:10:59 +0100

Fixed Makefile

Diffstat:
MMakefile | 16+++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/Makefile b/Makefile @@ -53,26 +53,24 @@ OUT = $(subst $(METADIR),$(OUTDIR),$(BIN:.bin=.html)) GENERATOR = ./generate -pages: genpages - rm -rf ${METADIR} - -genpages: ${OUT} +pages: ${OUT} ${OUT}: ${META} -${META}: mkpagedirs +${META}: ${IN} +${IN}: mkpagedirs -mkpagedirs: ${IN} +mkpagedirs: mkdir -p $(OUTDIRS) $(METADIRS) ${IN}: generator ${GENERATOR} -${META}: ${IN} +${METADIR}/%.c: ${INDIR}/%.stac ${GENERATOR} -o $@ $(subst $(METADIR),$(INDIR),$(@:.c=.stac)) -${BIN}: ${META} +${METADIR}/%.bin: ${METADIR}/%.c ${CC} -o $@ -I. $(@:.bin=.c) assemble.o -${OUT}: ${BIN} +${OUTDIR}/%.html: ${METADIR}/%.bin ./$(subst $(OUTDIR),$(METADIR),$(@:.html=.bin)) > $@ clean: