about summary refs log tree commit diff homepage
path: root/Makefile
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2023-06-27 01:09:47 +0900
committerNguyễn Gia Phong <cnx@loang.net>2023-06-27 01:09:47 +0900
commit85662893e031648e21e056eb46056f0c533e9812 (patch)
tree806ccf605be23074dcd28ba6e2558217f1208f2e /Makefile
parent6b5b671957d80321b5d6018cde1d3a2a7ffa0847 (diff)
downloadpx-85662893e031648e21e056eb46056f0c533e9812.tar.gz
Bring back homepage redirect
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 4 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 4f37502..63c5cd8 100644
--- a/Makefile
+++ b/Makefile
@@ -8,19 +8,16 @@ PREFIX ?= /tmp/px.cnx.gdn
 
 PICTURES := $(filter-out %.small.jpg $(PREFIX)/%.jpg, $(wildcard */*.jpg))
 THUMBNAILS := $(patsubst %.jpg,%.small.jpg,$(PICTURES))
-DATA := $(wildcard */index.xml) index.xml
+DATA := $(wildcard */index.xml)
 PAGES := $(patsubst %.xml,%.xhtml,$(DATA))
 OUTPUTS := $(THUMBNAILS) $(PAGES) atom.xml
-ALL := $(OUTPUTS) $(PICTURES) favicon.svg style.css
+ALL := $(OUTPUTS) $(PICTURES) index.xhtml favicon.svg style.css
 
 all: $(OUTPUTS)
 
 %.small.jpg: %.jpg
 	epeg -w 1024 -p -q 80 $< $@
 
-index.xml: 09/index.xml
-	ln -fs $< $@
-
 %.xhtml: %.xml page.xslt
 	xsltproc page.xslt $< > $@
 
@@ -28,7 +25,7 @@ atom.xml: atom.xslt $(DATA) cc.svg by.svg sa.svg
 	xsltproc atom.xslt > atom.xml
 
 clean:
-	rm -f atom.xml index.{xml,xhtml} */{index.xhtml,*.small.jpg}
+	rm -f atom.xml */{index.xhtml,*.small.jpg}
 
 $(PREFIX)/%: %
 	install -Dm644 $< $@
@@ -38,6 +35,6 @@ install: all $(addprefix $(PREFIX)/,$(ALL))
 uninstall:
 	rm -fr $(PREFIX)/*
 
-live: $(THUMBNAILS) index.xml atom.xml
+live: $(THUMBNAILS) atom.xml
 
 .PHONY: all clean install uninstall live