2 # Scripts that we install
4 # Starting with Mono 2.0, the majority of the tools default to the
5 # 2.0 profile. Commands that support the 1.0 toolchain and must
6 # run under 1.0 have the number 1 appended to their command names
7 # (for example mcs1 is the C# 1.0 compiler) and are listed in the
8 # scripts_1_0 compat variable.
10 # To preserve compatibility with old Makefiles and tools we keep the
11 # command names that had the suffix 2 (like wsdl2)
15 $(scripts_1_0_umask) \
16 $(scripts_1_0_compat) \
22 $(scripts_rpmhelpers) \
25 scripts_1_0_compat = \
85 # these are the new defaults, 2.0 profile-based commands
87 # we can move scripts_1_0 scripts here as we see fit, if we need to
88 # keep a 1.0 command available, we should additionally put it on
89 # the scripts_1_0_compat list
102 scripts_service = mono-service mono-service2
103 scripts_nunit = nunit-console nunit-console2
104 scripts_rpmhelpers = mono-find-provides mono-find-requires
106 pkgconfigdir = $(libdir)/pkgconfig
107 pkgconfig_DATA= mono-nunit.pc
109 CLEANFILES = $(scripts_1_0) $(scripts_1_0_umask) $(scripts_2_0) $(scripts_2_1) $(scripts_defaults) $(scripts_1_0_compat) mono-service mono-service2 nunit-console nunit-console2 mono-find-provides mono-find-requires
110 DISTCLEANFILES = $(pkgconfig_DATA) $(scripts_rpmhelpers)
118 mono-find-provides.in \
119 mono-find-requires.in \
129 plat_bindir = $(shell cygpath -m $(libdir))
130 mono_instdir = $(shell cygpath -m $(libdir))/mono
132 plat_bindir = $(bindir)
133 mono_instdir = $(prefix)/lib/mono
136 REWRITE_COMMON = sed \
137 -e 's,@''bindir@,$(bindir),g' \
138 -e 's,@''plat_bindir@,$(plat_bindir),g' \
139 -e 's,@''mono_instdir@,$(mono_instdir),g' \
140 -e 's,@''gtkdir@,$(gtkdir),g'
142 REWRITE = $(REWRITE_COMMON) -e 's,@''mono_interp@,$(mono_interp),g'
143 REWRITE_DEBUG = $(REWRITE_COMMON) -e 's,@''mono_interp@,$(mono_interp) --debug,g'
145 REWRITE1 = $(REWRITE) -e 's,@''framework_version@,1.0,g'
146 REWRITE2 = $(REWRITE) -e 's,@''framework_version@,2.0,g'
147 REWRITE2_1 = $(REWRITE) -e 's,@''framework_version@,2.1,g'
148 REWRITE1_DEBUG = $(REWRITE_DEBUG) -e 's,@''framework_version@,1.0,g'
149 REWRITE2_DEBUG = $(REWRITE_DEBUG) -e 's,@''framework_version@,2.0,g'
151 mono-service: mono-service.in Makefile
152 $(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/mono-service.in > $@.tmp
155 mono-service2: mono-service.in Makefile
156 $(REWRITE2) -e 's,@''exe_name@,$@,g' $(srcdir)/mono-service.in > $@.tmp
159 nunit-console: script.in Makefile
160 $(REWRITE1_DEBUG) -e 's,@''exe_name@,nunit-console,g' $(srcdir)/script.in > $@.tmp
163 nunit-console2: script.in Makefile
164 $(REWRITE2_DEBUG) -e 's,@''exe_name@,nunit-console,g' $(srcdir)/script.in > $@.tmp
167 smcs: smcs.in Makefile
168 $(REWRITE2_1) -e "s,@""exe_name@,smcs,g" $(srcdir)/smcs.in > $@.tmp
171 $(scripts_1_0): script.in Makefile
172 $(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/script.in > $@.tmp
175 $(scripts_1_0_umask): script_umask.in Makefile
176 $(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/script_umask.in > $@.tmp
179 $(scripts_1_0_compat): script.in Makefile
180 t=`basename $@ 1`; $(REWRITE1) -e "s,@exe_name@,$$t,g" $(srcdir)/script.in > $@.tmp
183 $(scripts_defaults): script.in Makefile
184 $(REWRITE2) -e "s,@exe_name@,$@,g" $(srcdir)/script.in > $@.tmp
187 $(scripts_2_0): script.in Makefile
188 n=`echo $@ | sed 's,2$$,,'`; \
189 $(REWRITE2) -e "s,@""exe_name@,$$n,g" $(srcdir)/script.in > $@.tmp