summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 17006d1ce2fe9f399fbe9ecb5a3f6c07e7df028f (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
backends = \
	disks-conf \
	memory-conf \
	network-conf \
	shares-conf \
	time-conf \
	users-conf \
	boot-conf \
	print-conf \
	internetsharing-conf \
	mouse-conf

PERLBODY = \
	gettext.pl.in \
	parse.pl.in \
	replace.pl.in \
	file.pl.in \
	general.pl.in \
	platform.pl.in \
	report.pl.in \
	xml.pl.in \
	service.pl.in \
	util.pl.in \
	network.pl.in \
	boot.pl.in \
	filesys.pl.in \
	media.pl.in \
	debug.pl.in \
	print.pl.in \
	share.pl.in


perl_libs = \
	$(PERLBODY:.pl.in=.pl)

scripts_SCRIPTS = $(backends) $(perl_libs) guess_system.sh

EXTRA_DIST = \
	$(PERLBODY) \
	disks-conf.in \
	memory-conf.in \
	network-conf.in \
	shares-conf.in \
	time-conf.in \
	users-conf.in \
	boot-conf.in \
	print-conf.in \
	mouse-conf.in \
	internetsharing-conf.in \
	guess_system.sh

CLEANFILES = $(backends) $(perl_libs)

$(backends): %-conf: %-conf.in
	sed s#___scriptsdir___#$(scriptsdir)# < $< > $@
	chmod +x $@

$(perl_libs): %.pl: %.pl.in
	sed -e s#___scriptsdir___#$(scriptsdir)# -e s#___bindir___#$(bindir)# < $< > $@