Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mtg@gnu.org>2019-01-17 00:55:31 -0500
committerMike Gerwitz <mtg@gnu.org>2019-01-17 01:30:23 -0500
commitf24dc3e227e91e128a200f92c7c170dc45412950 (patch)
tree34ac7c31bac92230220d82643f93f5152fda9724 /Makefile
parentf0a08f8755bd3660d24225bd0f6245de32e48198 (diff)
downloadthoughts-f24dc3e227e91e128a200f92c7c170dc45412950.tar.gz
thoughts-f24dc3e227e91e128a200f92c7c170dc45412950.tar.bz2
thoughts-f24dc3e227e91e128a200f92c7c170dc45412950.zip
cgit-root generation
This automates creation of the header and footer. Previously I modified them manually and they got out-of-sync. This is deployed to a different location on my webserver, even though the public route is `/projects'.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5a6786e..698ae8a 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,7 @@ phtml := $(postsrc:.md=.html)
pmk := $(pmeta:.meta=.mk)
www-root = www-root
+cgit-root = cgit-root
# articles in TeX
texticles = $(wildcard papers/*/)
@@ -62,7 +63,7 @@ RSS_N=10
export WWW_URL
-.PHONY: default clean webroot
+.PHONY: default clean webroot cgitroot
default: www-root
@@ -132,5 +133,11 @@ papers/%.dvi: papers/%/abstract.tex
docs/papers/.list: thoughts articles
echo "$(articles) $(texticles)" | tr ' ' '\n' | tools/doclist >$@
+
+cgitroot: $(cgit-root)/head.html $(cgit-root)/header.html $(cgit-root)/footer.html \
+ $(cgit-root)/cgitrc
+$(cgit-root)/%: src/cgit/%
+ install -Dma+r $< $@
+
clean:
- rm -rf $(www-root) $(pmeta) $(phtml) $(pmk)
+ rm -rf $(www-root) $(pmeta) $(phtml) $(pmk) $(cgit-root)