]> git.rocketbowman.com Git - jetsam.git/commitdiff
add about page to buildlist main
authorKyle Bowman <kyle+github@rocketbowman.com>
Mon, 21 Apr 2025 01:22:36 +0000 (21:22 -0400)
committerKyle Bowman <kyle+github@rocketbowman.com>
Mon, 21 Apr 2025 01:22:36 +0000 (21:22 -0400)
Makefile

index f9e8df0ede0a1b211102675b9817507b96f4ebf9..bc54272142beb683ab6b18dbd8beede657b18d35 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,10 +31,18 @@ $(BUILD_DIR)/all.html: .buildlist
 $(BUILD_DIR)/index.html: $(SRC_DIR)/index.md $(BUILD_DIR)/$(ASSETS_DIR)
        @pandoc --defaults=./defaults/md-to-html-index.yml --output=$@ $< 
        @echo "Building $@ from $<..."
+
+# Note: This is identical to the index rule, but I can't use a wildcard
+# to express both because the target would look identical to the standard
+# build rule. We might be able to merge them all.
+$(BUILD_DIR)/about.html: $(SRC_DIR)/about.md $(BUILD_DIR)/$(ASSETS_DIR)
+       @pandoc --defaults=./defaults/md-to-html-index.yml --output=$@ $< 
+       @echo "Building $@ from $<..."
  
 .buildlist:
        @echo $(BUILD_LIST) | tr ' ' '\n' > .buildlist
        @echo $(BUILD_DIR)/index.html >> .buildlist
+       @echo $(BUILD_DIR)/about.html >> .buildlist
 
 $(BUILD_DIR)/$(ASSETS_DIR): $(SRC_DIR)/$(ASSETS_DIR)
        mkdir -p $(BUILD_DIR)/$(ASSETS_DIR)