From 23bb68fe7e9cc8af176ff60b56e8a51a70f05a89 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 14 Feb 2021 01:35:10 +0000 Subject: Now generating pages directly from sqlite3 --- GNUmakefile | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 019a783..664d5d9 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,19 +1,14 @@ -TRAC := $(shell find raw-wiki-dump -type f -name '*.trac') -OUT := ${TRAC:.trac=.md} TAGS -TOOL := tools/trac2md.py - -all: ${OUT} +all: + mkdir -p tracwiki markdown + tools/extract.py fetch: rsync -aP --delete bikeshed.cryptech.is:/home/trac/db/trac.db bikeshed.cryptech.is:/home/trac/files/attachments . clean: - rm ${OUT} - -TAGS: ${TRAC} - etags -l none $^ + rm -rf tracwiki markdown -%.md: %.trac GNUmakefile ${TOOL} - ${TOOL} $< +distclean: clean + rm -rf trac.db attachments -.PHONY: all clean fetch +.PHONY: all clean fetch distclean -- cgit v1.2.3