aboutsummaryrefslogtreecommitdiff
path: root/hooks/demos/Makefile.am
blob: 8a12170ffe0abbd312e2810b9176c85ed3308093 (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
SUBDIRS = .

DEMOS = \
	report.bash \
	elog.bash \
	new_packages.bash \
	pretend_resume.hook

EXTRA_DIST = \
	report.bash.in \
	elog.bash.in \
	new_packages.bash.in \
	pretend_resume.hook.in

MAINTAINERCLEANFILES = Makefile.in
CLEANFILES = *~ gmon.out *.gcov *.gcno  *.gcda *.loT *.o *.so $(DEMOS) *.epicfail

hooksdemosdir = $(datadir)/paludis/hooks/demos/
hooksdemos_SCRIPTS = $(DEMOS)

new_packages.bash : $(srcdir)/new_packages.bash.in
	sed -e "s,@DATADIR@,$(datadir),g" < $(srcdir)/new_packages.bash.in > new_packages.bash

report.bash : $(srcdir)/report.bash.in
	sed -e "s,@DATADIR@,$(datadir),g" < $(srcdir)/report.bash.in > report.bash

elog.bash : $(srcdir)/elog.bash.in
	sed -e "s,@DATADIR@,$(datadir),g" < $(srcdir)/elog.bash.in > elog.bash

pretend_resume.hook : $(srcdir)/pretend_resume.hook.in
	sed -e "s,@DATADIR@,$(datadir),g" < $(srcdir)/pretend_resume.hook.in > pretend_resume.hook

built-sources : $(BUILT_SOURCES)
	for s in `echo $(SUBDIRS) | tr -d .` ; do $(MAKE) -C $$s built-sources || exit 1 ; done