Add script
[mono.git] / scripts / Makefile.am
1 EXTRA_DIST = script.in script2.in mono-nunit.pc.in
2 DISTCLEANFILES = mono-nunit.pc
3
4 bin2dir = $(bindir)
5
6 bin_SCRIPTS = \
7         al                      \
8         caspol                  \
9         cert2spc                \
10         certmgr                 \
11         chktrust                \
12         cilc                    \
13         disco                   \
14         dtd2xsd                 \
15         gacutil                 \
16         genxs                   \
17         ilasm                   \
18         makecert                \
19         mbas                    \
20         mcs                     \
21         mkbundle                \
22         mono-find-provides      \
23         mono-find-requires      \
24         monop                   \
25         monoresgen              \
26         permview                \
27         prj2make                \
28         resgen                  \
29         secutil                 \
30         setreg                  \
31         signcode                \
32         sn                      \
33         soapsuds                \
34         sqlsharp                \
35         wsdl                    \
36         xsd
37
38 bin2_SCRIPTS = gmcs wsdl2
39
40 CLEANFILES = $(bin_SCRIPTS) $(bin2_SCRIPTS)
41
42 if USE_JIT
43 MONO_INTERP = mono
44 else
45 MONO_INTERP = mint
46 endif
47
48 if PLATFORM_WIN32
49 plat_bindir = $(shell cygpath -m $(libdir))
50 mono_one_instdir = $(shell cygpath -m $(libdir))/mono/1.0
51 mono_two_instdir = $(shell cygpath -m $(libdir))/mono/2.0
52 else
53 plat_bindir = $(bindir)
54 mono_one_instdir = $(libdir)/mono/1.0
55 mono_two_instdir = $(libdir)/mono/2.0
56 endif
57
58 REWRITE = sed \
59         -e 's,@''bindir@,$(bindir),g'                           \
60         -e 's,@''plat_bindir@,$(plat_bindir),g'                 \
61         -e 's,@''mono_one_instdir@,$(mono_one_instdir),g'       \
62         -e 's,@''mono_two_instdir@,$(mono_two_instdir),g'       \
63         -e 's,@''gtkdir@,$(gtkdir),g'                           \
64         -e 's,@''exe_file@,$@.exe,g'                            \
65         -e 's,@''mono_interp@,$(MONO_INTERP),g'
66
67 $(bin_SCRIPTS): script.in Makefile.am
68         $(REWRITE) $(srcdir)/script.in > $@.tmp
69         mv $@.tmp $@
70
71 $(bin2_SCRIPTS): script2.in Makefile.am
72         $(REWRITE) $(srcdir)/script2.in > $@.tmp
73         mv $@.tmp $@
74
75 pkgconfigdir = $(libdir)/pkgconfig
76 pkgconfig_DATA= mono-nunit.pc
77