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

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

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

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

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.bash : $(srcdir)/pretend_resume.bash.in
	sed -e "s,@DATADIR@,$(datadir),g" < $(srcdir)/pretend_resume.bash.in > pretend_resume.bash

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

distcheck-deps-local : $(DISTCHECK_DEPS)

distcheck-deps : distcheck-deps-subdirs

distcheck-deps-subdirs :
	for s in $(SUBDIRS) . ; do if test x$$s = x. ; then $(MAKE) distcheck-deps-local || exit 1 ; \
	    else $(MAKE) -C $$s distcheck-deps || exit 1 ; fi ; done