Created
April 4, 2012 12:05
-
-
Save usagi/2300692 to your computer and use it in GitHub Desktop.
append darkhttpd to your Makefile sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmp: | |
@ mkdir tmp | |
test-darkhttpd: | |
@ darkhttpd _site --index main.html | |
test-darkhttpd-daemon-start: tmp | |
@ darkhttpd _site --index main.html --daemon --pidfile tmp/darkhttpd.pid | |
test-darkhttpd-daemon-stop: tmp/darkhttpd.pid | |
@ kill `cat tmp/darkhttpd.pid` | |
test-darkhttpd-daemon-restart: test-darkhttpd-daemon-stop test-darkhttpd-daemon-start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
link to the article as my blog: http://usagi.hatenablog.jp/entry/2012/04/04/204154