From de8302e5d838fa3007a3d927c253e89643b72725 Mon Sep 17 00:00:00 2001
From: dtb
Date: Wed, 31 Aug 2022 10:05:55 -0400
Subject: [PATCH] Makefile build system
---
homepage/.build.yml | 2 +-
homepage/Makefile | 26 ++++++++++++++++++++
homepage/css/Makefile | 2 ++
homepage/index.m4 | 56 ++++++++++++++++++++++++++++++-------------
4 files changed, 68 insertions(+), 18 deletions(-)
create mode 100644 homepage/Makefile
create mode 100644 homepage/css/Makefile
diff --git a/homepage/.build.yml b/homepage/.build.yml
index b98e4e6..ec66977 100644
--- a/homepage/.build.yml
+++ b/homepage/.build.yml
@@ -6,7 +6,7 @@ packages:
tasks:
- package: |
cd homepage
- m4 index.m4 >index.html
+ make
tar -cvz --exclude .git --exclude '*.m4' . >../site.tar.gz
ls -l ../site.tar.gz
- upload: |
diff --git a/homepage/Makefile b/homepage/Makefile
new file mode 100644
index 0000000..1779e2a
--- /dev/null
+++ b/homepage/Makefile
@@ -0,0 +1,26 @@
+.POSIX:
+
+generate: index css
+
+index: \
+index.m4 \
+announcement.m4 \
+contact.m4 \
+extensions.m4 \
+faq.m4 \
+gear.m4 \
+head.m4 \
+navigation.m4 \
+now.m4 \
+praise.m4 \
+privacy.m4 \
+services.m4 \
+stickers.m4 \
+trinitisms.m4 \
+zelda.m4
+ m4 index.m4 >index.html
+
+css: head.m4 css/index.m4
+ make -C css
+
+.PHONY: generate
diff --git a/homepage/css/Makefile b/homepage/css/Makefile
new file mode 100644
index 0000000..89ffeca
--- /dev/null
+++ b/homepage/css/Makefile
@@ -0,0 +1,2 @@
+css: index.m4 ../head.m4
+ m4 index.m4 >index.html
diff --git a/homepage/index.m4 b/homepage/index.m4
index 1df16e8..c3422e2 100644
--- a/homepage/index.m4
+++ b/homepage/index.m4
@@ -1,9 +1,9 @@
-define(`_PAGE', `')
-define(`_TITLE', `trinity dot moe')
-define(`_DESCRIPTION', `trinity`'s personal website')
+define(`_PAGE', `')dnl
+define(`_TITLE', `trinity dot moe')dnl
+define(`_DESCRIPTION', `trinity`'s personal website')dnl
-include(`head.m4')
+include(`head.m4')dnl
@@ -17,7 +17,7 @@ window.onload = function(){
};
//-->
-include(`announcement.m4')
+include(`announcement.m4')dnl
Hi, I'm Deven Trinity Blake. I'm just your normal everyday nerd.
transcriptions of my name include:
@@ -42,30 +42,52 @@ and devenblake.com redirects to this webpage
I'm vaccinated against COVID-19. Are you?
-include(`navigation.m4')
+include(`navigation.m4')dnl
-include(`contact.m4')
+
+include(`contact.m4')dnl
+
-include(`services.m4')
+
+include(`services.m4')dnl
+
-include(`praise.m4')
+
+include(`praise.m4')dnl
+
-include(`extensions.m4')
+
+include(`extensions.m4')dnl
+
-include(`now.m4')
+
+include(`now.m4')dnl
+
-include(`faq.m4')
+
+include(`faq.m4')dnl
+
-include(`gear.m4')
+
+include(`gear.m4')dnl
+
-include(`trinitisms.m4')
+
+include(`trinitisms.m4')dnl
+
-include(`zelda.m4')
+
+include(`zelda.m4')dnl
+
-include(`privacy.m4')
+
+include(`privacy.m4')dnl
+
-include(`stickers.m4')
+
+include(`stickers.m4')dnl
+