Moved papers into docs subdir

This dir will store all documents to be copied into www-root
master
Mike Gerwitz 2013-05-21 22:49:19 -04:00
parent af9661fcc2
commit 8257096d84
3 changed files with 6 additions and 5 deletions

View File

@ -17,11 +17,11 @@
##
# list of articles to compile
articles := $(patsubst %.txt, %.html, $(wildcard papers/*.txt))
articles := $(patsubst %.txt, %.html, \
$(shell find docs/ -name '*.txt'))
www_root := www-root/
.PHONY: default clean thoughts
.PHONY: default clean articles thoughts
default: www-root
@ -49,9 +49,10 @@ thoughts:
$<
./tools/mgify "$@"
www-root: $(articles) thoughts
articles: $(articles)
www-root: articles thoughts
mkdir -p www-root/papers
cp papers/*.html www-root/papers/
( cd docs/ && find . -name '*.html' -exec cp {} ../www-root/{} \; )
cp -r images/ www-root/
cp style.css www-root/
ln -sf ../images www-root/papers/images