summaryrefslogtreecommitdiff
path: root/contrib/Makefile.am
blob: 0199763185bf82105dfeb0402b375a37258a1a9c (plain)
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
OURFILES = \
	bacman \
	bash_completion \
	pacdiff \
	paclist \
	pacscripts \
	pacsearch \
	pactree \
	wget-xdelta.sh \
	zsh_completion

EXTRA_DIST = \
	PKGBUILD.vim \
	bacman.in \
	bash_completion.in \
	pacdiff.in \
	paclist.in \
	pacscripts.in \
	pacsearch.in \
	pactree.in \
	vimprojects \
	wget-xdelta.sh.in \
	zsh_completion.in \
	README

# Files that should be removed, but which Automake does not know.
MOSTLYCLEANFILES = $(OURFILES) *.tmp

edit = sed \
	-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
	-e 's|@localstatedir[@]|$(localstatedir)|g' \
	-e 's|@BASH[@]|$(BASH)|g'

$(OURFILES): Makefile
	@echo '    ' GEN $@;
	@rm -f $@ $@.tmp
	@cp -a $@.in $@.tmp
	@$(edit) $@.in >$@.tmp
	@mv $@.tmp $@

all-am: $(OURFILES)

# vim:set ts=2 sw=2 noet: