summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 85ee625602d075e1a07f115e222ed1cb8434a3e8 (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
61
62
63
64
65
66
67
68
69
70
71
72
SUBDIRS =

backends = \
	disks-conf \
	memory-conf \
	network-conf \
	shares-conf \
	time-conf \
	users-conf \
	boot-conf \
	print-conf \
	internetsharing-conf \
	mouse-conf \
	package-conf \
	display-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 \
	x.pl.in \
	font.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 \
	package-conf.in \
	display-conf.in \
	guess_system.sh \
	\
	README \
	AUTHORS \
	NEWS

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)# < $< > $@