diff options
author | Gyorgy Orban <o.gyorgy@gmail.com> | 2017-11-18 13:41:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-18 13:41:28 +0300 |
commit | 207e260accae1d291aa488466afcc063a5a58b56 (patch) | |
tree | bfadbb8ffeddb5f53f5b8cb3d89475e3a4320b9a | |
parent | 238b19c50ddea366d31ff4cd9009fcfdcdcb3e53 (diff) | |
parent | feec5de559af1b1a0d4615638df2e2da89fabe41 (diff) |
Merge pull request #8 from gyorb/makefile
add makefile to build and check
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..378eac2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f84dfee --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ + +check: example + # run html-tidy to check for errors http://www.html-tidy.org/ + find ./build/public *.html -printf '%p' -exec tidy -eq {} \; + +serve: prep_example + # build the example site and serve + cd build && hugo serve + +example: prep_example + # build the example + cd build && hugo + +prep_example: clean + # prepare the example site + mkdir -p build/themes + cp -r exampleSite/* build + cd build/themes && ln -s ../../ hugo-dusk + +clean: + rm -rf build |