aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 20 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0c183ca..d0add7d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
1MAKEFLAGS+=-j2 1MAKEFLAGS+=-j2
2PROJECTS_FILENAME = content/pages/projects.md
2 3
3dev: watch server 4dev: watch server
4 5
@@ -8,5 +9,22 @@ watch:
8server: 9server:
9 jbmafp -s 10 jbmafp -s
10 11
11fetch-projects: 12update-projects: projects-header
12 cd tools && python projects.py 13 cat content/pages/projects.fossil.md.part \
14 content/pages/projects.github.md.part >> \
15 content/pages/projects.md
16
17projects-header:
18 echo "---" > $(PROJECTS_FILENAME)
19 echo "title: Personal projects" >> $(PROJECTS_FILENAME)
20 echo "date: 2024-10-21T12:00:00+02:00" >> $(PROJECTS_FILENAME)
21 echo "url: projects.html" >> $(PROJECTS_FILENAME)
22 echo "type: page" >> $(PROJECTS_FILENAME)
23 echo "draft: false" >> $(PROJECTS_FILENAME)
24 echo "---\n" >> $(PROJECTS_FILENAME)
25
26update-fossil:
27 cd tools && bash fossil-projects.sh
28
29update-github:
30 cd tools && python github-projects.py