kocotian.pl

My personal webpage sources
git clone git://git.kocotian.pl/kocotian.pl.git
Log | Files | Refs | README | LICENSE

commit e6256014630ff87f8dece9f661df1b0dc69fc687
parent bb927ceb3c82254b87395b889af6e0f085cdb5e1
Author: kocotian <kocotian@kocotian.pl>
Date:   Thu, 25 Mar 2021 13:13:34 +0100

Directories moved to config.mk, templatedir

Diffstat:
MMakefile | 3---
Mconfig.mk | 8+++++++-
2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile @@ -57,16 +57,13 @@ ${OBJLIB}: ${SRCLIB} # == Section 2: Generating pages == -INDIR = in/ INDIRS = $(sort $(shell find $(INDIR)/ -type d)) IN = $(sort $(shell find $(INDIR)/ -type f -name '*.stac')) -METADIR = meta/ METADIRS = $(subst $(INDIR),$(METADIR),$(INDIRS)) META = $(subst $(INDIR),$(METADIR),$(IN:.stac=.c)) BIN = $(META:.c=.bin) -OUTDIR = out/ OUTDIRS = $(subst $(METADIR),$(OUTDIR),$(METADIRS)) OUT = $(subst $(METADIR),$(OUTDIR),$(BIN:.bin=.html)) diff --git a/config.mk b/config.mk @@ -6,9 +6,15 @@ BUILDNAME = vanilla VERSION = ${MAJORVERSION}.${SUBVERSION}.${PATCHLEVEL}-${BUILDNAME} +# directories +INDIR = in/ +METADIR = meta/ +OUTDIR = out/ +TEMPLATEDIR = templates/ + # flags CFLAGS = -std=c99 -Wall -Wextra -pedantic -Ofast -CPPFLAGS = -D_XOPEN_SOURCE=700 -DVERSION=\"${VERSION}\" +CPPFLAGS = -D_XOPEN_SOURCE=700 -DVERSION=\"${VERSION}\" -DTEMPLATEDIR=\"${TEMPLATEDIR}\" LDFLAGS = -Ofast -static CCFLAGS = ${CFLAGS} ${CPPFLAGS}