summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 7386014bdabcfe31ed824446b3cc857019ab5461 (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
backends = \
	disks-conf \
	memory-conf \
	network-conf \
	shares-conf \
	time-conf \
	users-conf \
	boot-conf \
	print-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 \
	debug.pl.in \
	print.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 \
	guess_system.sh

CLEANFILES = $(backends) $(perl_libs)

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

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