/
Makefile.am
94 lines (80 loc) · 1.95 KB
/
Makefile.am
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
bin_SCRIPTS = $(scripts_1_0) $(scripts_2_0) gmcs mono-service $(scripts_rpmhelpers)
scripts_1_0 = \
al \
caspol \
cert2spc \
certmgr \
chktrust \
cilc \
disco \
dtd2xsd \
gacutil \
genxs \
ilasm \
makecert \
macpack \
mbas \
mcs \
mjs \
mkbundle \
monop \
mono-shlib-cop \
nunit-console \
permview \
prj2make \
resgen \
secutil \
setreg \
signcode \
sn \
soapsuds \
sqlsharp \
wsdl \
xsd
scripts_2_0 = \
monop2 \
wsdl2
scripts_rpmhelpers = mono-find-provides mono-find-requires
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA= mono-nunit.pc
CLEANFILES = $(scripts_1_0) $(scripts_2_0) gmcs mono-service
DISTCLEANFILES = $(pkgconfig_DATA) $(scripts_rpmhelpers)
EXTRA_DIST = \
script.in \
mono-service.in \
mono-nunit.pc.in \
mono-find-provides.in \
mono-find-requires.in
if USE_JIT
mono_interp = mono
else
mono_interp = mint
endif
if PLATFORM_WIN32
plat_bindir = $(shell cygpath -m $(libdir))
mono_instdir = $(shell cygpath -m $(libdir))/mono
else
plat_bindir = $(bindir)
mono_instdir = $(prefix)/lib/mono
endif
REWRITE = sed \
-e 's,@''bindir@,$(bindir),g' \
-e 's,@''plat_bindir@,$(plat_bindir),g' \
-e 's,@''mono_instdir@,$(mono_instdir),g' \
-e 's,@''gtkdir@,$(gtkdir),g' \
-e 's,@''mono_interp@,$(mono_interp),g'
REWRITE1 = $(REWRITE) -e 's,@''framework_version@,1.0,g'
REWRITE2 = $(REWRITE) -e 's,@''framework_version@,2.0,g'
mono-service: mono-service.in Makefile
$(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/mono-service.in > $@.tmp
mv $@.tmp $@
$(scripts_1_0): script.in Makefile
$(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/script.in > $@.tmp
mv $@.tmp $@
gmcs: script.in Makefile
$(REWRITE2) -e 's,@''exe_name@,$@,g' $(srcdir)/script.in > $@.tmp
mv $@.tmp $@
$(scripts_2_0): script.in Makefile
n=`echo $@ | sed 's,2$$,,'`; \
$(REWRITE2) -e "s,@""exe_name@,$$n,g" $(srcdir)/script.in > $@.tmp
mv $@.tmp $@