Some design and some content, Also Makefile
This commit is contained in:
29
Makefile
Normal file
29
Makefile
Normal file
@@ -0,0 +1,29 @@
|
||||
.PHONY: mkdist clean
|
||||
|
||||
all: clean index now links
|
||||
rm -rf dist/template.html
|
||||
|
||||
watch:
|
||||
while sleep 1 ; do \
|
||||
find ./src -iname '*.html' -o -name "*.css" \
|
||||
| entr -d make -f ./Makefile ; \
|
||||
done
|
||||
|
||||
mkdist:
|
||||
mkdir -p dist
|
||||
|
||||
template: mkdist src/start.html src/nav.html src/side.html
|
||||
cp -r src/styles dist
|
||||
cat src/start.html src/nav.html src/side.html > dist/template.html
|
||||
|
||||
index: template src/pages/index.html
|
||||
cat dist/template.html src/pages/index.html src/end.html > dist/index.html
|
||||
|
||||
now: template src/pages/now.html
|
||||
cat dist/template.html src/pages/now.html src/end.html > dist/now.html
|
||||
|
||||
links: template src/pages/links.html
|
||||
cat dist/template.html src/pages/links.html src/end.html > dist/links.html
|
||||
|
||||
clean:
|
||||
rm -rf dist
|
||||
Reference in New Issue
Block a user