Files @ r13:e60cce377e32
Branch filter:

Location: public/ws-vacation/doc/Makefile

ws
doc/index.txt: Index page for web site.
# -*- makefile -*-

top_srcdir = ..
srcdir = .

base_dir=$(shell pwd)

INPUTS =
TXTS = 
HTML_TXTS = 
EXTRA_DIST =
CLEANFILES =

TXTS += README.txt
TXTS += README-de.txt
HTML_TXTS += index.txt
HTML_TXTS += README-GFDL.txt
HTML_TXTS += README-COPYING.txt

# use cp for Windows
LN_S = cp
LN_S = ln -s

TXT_PDFS = $(patsubst %.txt,%.pdf,$(TXTS))
TXT_HTMLS = $(patsubst %.txt,%.html,$(TXTS)) $(patsubst %.txt,%.html,$(HTML_TXTS))
#CLEANFILES += $(TXT_PDFS)
#CLEANFILES += $(TXT_HTMLS)

SNIPPETS = ../lib/snippets.pl

DISTFILES =
DISTFILES += Makefile
DISTFILES += $(TXTS)
DISTFILES += $(TXT_PDFS)
DISTFILES += $(TXT_HTMLS)
DISTFILES += $(EXTRA_DIST)

%: %.in
	cat $< | $(SNIPPETS) --process --replace --mode text --key base_dir --value $(base_dir) --cat - >$@
	test -s $@ || ( rm -f $@ && test 1 = 0 )

%.html: %.txt
	cat $< | PYTHONPATH="$$( pwd )" tools/ws_rst2html.py --traceback --cloak-email-addresses >$@
	test -s $@ || (rm -f $@ && exit 1)

%.pdf: %.txt
	cat $< | PYTHONPATH="$$( pwd )" tools/ws_rst2pdf -e ws_docutils.raw_role >$@
	test -s $@ || (rm -f $@ && exit 1)

default: all

all: $(DISTFILES) all-local

all-local:

clean: clean-local
	test -z '$(CLEANFILES)' || rm -rf $(CLEANFILES)

clean-local:
	find . -name '*.pyc' | xargs -r rm 

install_top_dir = ../../wolfmanx.bitbucket.org
install_dir = $(install_top_dir)/ws-vacation

install: all
	@(						\
	test ! -d $(install_top_dir) ||			\
	(						\
	mkdir -p $(install_dir);			\
	list='$(TXT_HTMLS)'; test -z "$$list" ||	\
	for file in $$list; do				\
	    echo "cp $$file $(install_dir)/";		\
	    cp $$file $(install_dir)/;			\
	done;						\
	)						\
	)

dist:

tags-rc:
	gen_tags.sh --template
tags:
	gen_tags.sh --force

README.txt: ../README.txt
	rm -f $@
	$(LN_S) ../$@ $@

# |:here:|
# :ide-menu: Emacs IDE Main Menu - Buffer @BUFFER@
# . M-x `eIDE-menu' ()(eIDE-menu "z")

# :ide: COMPILE: tags
# . (let ((args "tags")) (compile (concat "make -k " args)))

# :ide: COMPILE: dist
# . (let ((args "dist")) (compile (concat "make -k " args)))

# :ide: COMPILE: install
# . (let ((args "install")) (compile (concat "make -k " args)))

# :ide: COMPILE: clean
# . (let ((args "clean")) (compile (concat "make -k " args)))

# :ide: COMPILE: Standard
# . (let ((args "")) (compile (concat "make -k " args)))
#
# Local Variables:
# mode: makefile
# snip-mode: makefile-gmake
# truncate-lines: t
# End: