summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2021-02-14 01:35:10 +0000
committerRob Austein <sra@hactrn.net>2021-02-14 01:35:10 +0000
commit23bb68fe7e9cc8af176ff60b56e8a51a70f05a89 (patch)
tree27c87a0c157e6eb343518031c4c3afd1e95bc488 /GNUmakefile
parentfa8b4d0e872d182ee878020fb1b066ce0da621ae (diff)
Now generating pages directly from sqlite3
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile19
1 files changed, 7 insertions, 12 deletions
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