summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 112e96c..46d70b1 100644
--- a/Makefile
+++ b/Makefile
@@ -6,11 +6,10 @@ MD=smu
MDTEX=/home/nick/src/misc/smu/smu
RSS=index.ttl
-BIB=pubs/index.ttl
-BIBTXT=pubs/index.txt
+BIB=writing/index.ttl
+BIBTXT=writing/index.txt
PAGES=$(shell find . -name '*.txt' ! -name 'robots.txt' ! -name $(RSS)) $(BIBTXT)
-PUBS=$(shell find ./pubs/ -name '*.txt' ! -name 'index.*')
-ARTS=$(shell find ./articles/ -name '*.txt' ! -name 'index.*')
+WRITING=$(shell find ./writing/ -name '*.txt' ! -name 'index.*')
EXTRAS=$(shell find . -name '*.css') card.ttl
TARGETS=$(PAGES:.txt=.html) $(RSS) $(BIBTXT)
GZIP=$(PAGES:=.gz) $(TARGETS:=.gz) $(EXTRAS:=.gz) $(BIB:=.gz)
@@ -47,13 +46,11 @@ $(RSS): $(PAGES)
echo making $@
sh makerss.sh $(SITENAME) $(FOAF) $* > $@
-pubs/index.txt: $(BIB)
+writing/index.txt: $(BIB) $(WRITING)
echo making $@
- sh bibtotxt.sh $< > $@
-
-articles/index.txt: $(ARTS)
- echo making $@
- sh dirindex.sh articles > $@
+ cat includes/writingheader.txt > $@
+ sh bibtotxt.sh $(BIB) >> $@
+ sh listarticles.sh writing $(BIB) >> $@
clean:
rm -f -- $(TARGETS) $(GZIP)