Files
@ r25:96a33a39362a
Branch filter:
Location: public/ws-vacation/doc/Makefile
r25:96a33a39362a
3.1 KiB
text/x-makefile
index.php: Expert mode to use pre-formatted email implemented.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | # -*- makefile -*-
top_srcdir = ..
srcdir = .
base_dir=$(shell pwd)
INPUTS =
TXTS =
HTML_TXTS =
JPGS =
EXTRA_DIST =
CLEANFILES =
TXTS += README.txt
TXTS += README-de.txt
HTML_TXTS += index.txt
HTML_TXTS += README-GFDL.txt
HTML_TXTS += README-COPYING.txt
JPGS += ws-vacation.jpg
JPGS += ws-vacation-user.jpg
JPGS += ws-vacation-expert.jpg
JPG_THUMBS = $(patsubst %.jpg, %-t.jpg, $(JPGS))
# 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 += $(JPGS)
DISTFILES += $(JPG_THUMBS)
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 docutils.conf
cat $< | PYTHONPATH="$$( pwd )" tools/ws_rst2html.py --traceback --cloak-email-addresses >$@
test -s $@ || (rm -f $@ && exit 1)
%.pdf: %.txt docutils.conf
cat $< | PYTHONPATH="$$( pwd )" tools/ws_rst2pdf -e ws_docutils.raw_role >$@
test -s $@ || (rm -f $@ && exit 1)
%-t.jpg: %.jpg
convert $< -resize 200 $@
default: all
index.html: index.txt index-template.txt docutils.conf
cat $< | PYTHONPATH="$$( pwd )" tools/ws_rst2html.py --template index-template.txt --traceback --cloak-email-addresses >$@
test -s $@ || (rm -f $@ && exit 1)
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; \
list='$(JPGS)'; test -z "$$list" || \
for file in $$list; do \
echo "cp $$file $(install_dir)/"; \
cp $$file $(install_dir)/; \
done; \
list='$(JPG_THUMBS)'; 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:
|