2004-12-06 Ben Maurer <bmaurer@ximian.com>
[mono-project.git] / scripts / Makefile.am
blob3b7e3f423141210aac3600aacef04f9ca3ad0d23
1 EXTRA_DIST = script.in script2.in
3 bin2dir = $(bindir)
5 bin_SCRIPTS = \
6         al                      \
7         cert2spc                \
8         certmgr                 \
9         chktrust                \
10         cilc                    \
11         disco                   \
12         gacutil                 \
13         genxs                   \
14         ilasm                   \
15         makecert                \
16         mbas                    \
17         mcs                     \
18         mkbundle                \
19         mono-find-provides      \
20         mono-find-requires      \
21         monop                   \
22         monoresgen              \
23         resgen                  \
24         secutil                 \
25         setreg                  \
26         signcode                \
27         sn                      \
28         soapsuds                \
29         sqlsharp                \
30         wsdl                    \
31         xsd
33 bin2_SCRIPTS = gmcs wsdl2
35 CLEANFILES = $(bin_SCRIPTS) $(bin2_SCRIPTS)
37 if USE_JIT
38 MONO_INTERP = mono
39 else
40 MONO_INTERP = mint
41 endif
43 if PLATFORM_WIN32
44 plat_bindir = $(shell cygpath -m $(libdir))
45 mono_one_instdir = $(shell cygpath -m $(libdir))/mono/1.0
46 mono_two_instdir = $(shell cygpath -m $(libdir))/mono/2.0
47 else
48 plat_bindir = $(bindir)
49 mono_one_instdir = $(libdir)/mono/1.0
50 mono_two_instdir = $(libdir)/mono/2.0
51 endif
53 REWRITE = sed \
54         -e 's,@''bindir@,$(bindir),g'                           \
55         -e 's,@''plat_bindir@,$(plat_bindir),g'                 \
56         -e 's,@''mono_one_instdir@,$(mono_one_instdir),g'       \
57         -e 's,@''mono_two_instdir@,$(mono_two_instdir),g'       \
58         -e 's,@''gtkdir@,$(gtkdir),g'                           \
59         -e 's,@''exe_file@,$@.exe,g'                            \
60         -e 's,@''mono_interp@,$(MONO_INTERP),g'
62 $(bin_SCRIPTS): script.in Makefile.am
63         $(REWRITE) $(srcdir)/script.in > $@.tmp
64         mv $@.tmp $@
66 $(bin2_SCRIPTS): script2.in Makefile.am
67         $(REWRITE) $(srcdir)/script2.in > $@.tmp
68         mv $@.tmp $@