# HG changeset patch # User Oleksandr Gavenko # Date 1318541904 -10800 # Node ID 6a41484fd3a4a1fc7d07589efc3a6b6ae87ac505 # Parent 24914893fd3c3a380eaf3c01ef17ad2f231f95eb Port to Debian. diff -r 24914893fd3c -r 6a41484fd3a4 Makefile --- a/Makefile Wed Aug 17 21:14:54 2011 +0300 +++ b/Makefile Fri Oct 14 00:38:24 2011 +0300 @@ -11,6 +11,23 @@ .DEFAULT_GOAL = all ################################################################ +# Platform definition. + +host_os := linux +ifneq '' '$(WINDIR)' + host_os := cygwin +endif +target_os := $(host_os) + +################################################################ +# Build tool definition/switches. + +RST2HTML = rst2html +ifeq '$(host_os)' 'cygwin' + RST2HTML = rst2html.py +endif + +################################################################ # Proj dirs/files. RST_FILES := $(wildcard *.rst) @@ -34,7 +51,7 @@ html: $(HTML_FILES) $(TXT__FILES) $(HTML_DIR)/%.html: %.rst rst.css | $(HTML_DIR) - rst2html.py --stylesheet=rst.css $*.rst $@ + $(RST2HTML) --stylesheet=rst.css $*.rst $@ $(HTML_DIR)/index.html: index.sh $(filter-out $(HTML_DIR)/index.html,$(HTML_FILES)) | $(HTML_DIR) ./index.sh frame >$@