Skip to content

Instantly share code, notes, and snippets.

@usagi
Created April 4, 2012 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save usagi/2300692 to your computer and use it in GitHub Desktop.
Save usagi/2300692 to your computer and use it in GitHub Desktop.
append darkhttpd to your Makefile sample
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
@usagi
Copy link
Author

usagi commented Apr 4, 2012

link to the article as my blog: http://usagi.hatenablog.jp/entry/2012/04/04/204154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment