Files
@ r38:fa115af9c367
Branch filter:
Location: public/ws-vacation/Makefile
r38:fa115af9c367
1.9 KiB
text/x-makefile
README.txt: minor fix
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 | # -*- makefile -*-
top_srcdir = .
srcdir = .
SUDOERS_D = /etc/sudoers.d
base_dir=$(shell pwd)
SUBDIRS = doc
INPUTS =
TXTS =
HTML_TXTS =
EXTRA_DIST =
CLEANFILES =
INPUTS += .htaccess.in
INPUTS += lib/ws-vacation-sudo.in
INPUTS += lib/ws-vacation.conf.in
TARGETS = $(patsubst %.in,%,$(INPUTS))
CLEANFILES += $(TARGETS)
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 += $(INPUTS)
DISTFILES += $(TARGETS)
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 )
%.pdf: %.txt
cd doc && $(MAKE) ../$@
%.html: %.txt
cd doc && $(MAKE) ../$@
default: all
all: $(DISTFILES) all-local
all-local:
.PHONY: doc
doc:
( cd doc && $(MAKE) )
clean: clean-local
test -z '$(CLEANFILES)' || rm -rf $(CLEANFILES)
clean-local:
( cd doc && $(MAKE) clean )
install: all
mkdir -p $(SUDOERS_D)
dist:
tags-rc:
gen_tags.sh --template
tags:
gen_tags.sh --force
# |: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: doc
# . (let ((args "doc")) (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:
|