From ecda49e0b20ad3bd52449356dccf2f8095ecfb70 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 25 Mar 2015 21:49:45 -0700 Subject: Flatten directory structure All content files (*.txt, *.html, *.river) are now in /. I did this to simplify the compilation step, and to make linking easier. I'm still thinking about whether I should move the contents of js/, img/, and lua/ into /, or into an 'assets' folder of some sort. We'll see. --- src/makefile | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 src/makefile (limited to 'src/makefile') diff --git a/src/makefile b/src/makefile deleted file mode 100644 index b637494..0000000 --- a/src/makefile +++ /dev/null @@ -1,44 +0,0 @@ -# Produce HTML & RIVER outputs with pandoc -# Case Duckworth | autocento.me -# inspired by Lincoln Mullen | lincolnmullen.com - -# Define directories, file lists, and options -HTMLdir = .. -RIVdir = ../river -LUAdir = ../lua -HTMLs := $(patsubst %.txt,%.html,$(wildcard *.txt)) -HTMopts = --template=$(HTMLdir)/.template.html -HTMopts+= --smart --mathml --section-divs -RIVERs := $(patsubst %.txt,%.river,$(wildcard *.txt)) -RIVopts = -LOZENGE = ../js/lozenge.js -LOZupd = ../js/update-lozenge.sh - -# Do everything -.PHONY: all html river lozenge -all : html river lozenge -html : $(HTMLs) -river : $(RIVERs) -lozenge : $(LOZENGE) - -# Generic rule for HTML targets and Markdown sources -%.html : %.txt - pandoc $< -f markdown -t html5 $(HTMopts) -o $(HTMLdir)/$@ - -# Generic rule for RIVER targets and Markdown sources -%.river : %.txt - @echo River-ing $@ - @sed -e '/^---$$/,/^...$$/d'\ - -e "s/[^][A-Za-z0-9\/\"':.-]/ /g" $< |\ - pandoc - -f markdown -t $(LUAdir)/river.lua $(RIVopts) -o $(RIVdir)/$@ - -$(LOZENGE) : $(HTMLdir)/$(HTMLs) - @echo "Updating lozenge.js..." - @list=`ls $(HTMLdir)/*.html |\ - sed -e 's,../,,g' |\ - tr '\n' ' ' |\ - sed -e 's/\(\S\+.html\) /"\1",/g'\ - -e 's/^\(.*\),$$/var files=[\1]/'` &&\ - sed -i "s/var files=.*/$$list/" $(LOZENGE) -# TODO: add compiling hapax -# TODO: add first line compiler -- cgit 1.4.1-21-gabe81