summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2021-06-02 20:09:35 +0000
committerRob Austein <sra@hactrn.net>2021-06-02 20:09:35 +0000
commitbe858bc28af94a498b613fa6541ed3e730fd9473 (patch)
tree3334a811a08a74b205ff300d882d464b9a7c465d /GNUmakefile
First cut at project-independent version of these scripts
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644
index 0000000..a6e7257
--- /dev/null
+++ b/GNUmakefile
@@ -0,0 +1,24 @@
+# Sample settings, tweak for particular jobs on make command line or
+# via environment variables.
+
+SOURCE_URL := https://git.cryptech.is/
+SOURCE_TRAC_DB := bikeshed.cryptech.is:/home/trac/db/trac.db
+SOURCE_TRAC_ATTACHMENTS := bikeshed.cryptech.is:/home/trac/files/attachments
+
+all:
+ ./extract.py --source-url ${SOURCE_URL}
+ cd pelican; pelican --output website --settings pelicanconf.py --fatal errors content
+
+fetch:
+ rsync -aP --delete ${SOURCE_TRAC_DB} ${SOURCE_TRAC_ATTACHMENTS} .
+
+clean:
+ rm -rf wiki pelican
+
+distclean: clean
+ rm -rf trac.db attachments
+
+webfsd:
+ webfsd -r pelican/website -4 -L - -F -f index.html
+
+.PHONY: all clean fetch distclean webfsd