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
101 scripts_service = mono-service mono-service2
102 scripts_nunit = nunit-console nunit-console2
103 scripts_rpmhelpers = mono-find-provides mono-find-requires
105 pkgconfigdir = $(libdir)/pkgconfig
106 pkgconfig_DATA= mono-nunit.pc
108 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
109 DISTCLEANFILES = $(pkgconfig_DATA) $(scripts_rpmhelpers)
117 mono-find-provides.in \
118 mono-find-requires.in \
128 plat_bindir = $(shell cygpath -m $(libdir))
129 mono_instdir = $(shell cygpath -m $(libdir))/mono
131 plat_bindir = $(bindir)
132 mono_instdir = $(prefix)/lib/mono
135 REWRITE_COMMON = sed \
136 -e 's,@''bindir@,$(bindir),g' \
137 -e 's,@''plat_bindir@,$(plat_bindir),g' \
138 -e 's,@''mono_instdir@,$(mono_instdir),g' \
139 -e 's,@''gtkdir@,$(gtkdir),g'
141 REWRITE = $(REWRITE_COMMON) -e 's,@''mono_interp@,$(mono_interp),g'
142 REWRITE_DEBUG = $(REWRITE_COMMON) -e 's,@''mono_interp@,$(mono_interp) --debug,g'
144 REWRITE1 = $(REWRITE) -e 's,@''framework_version@,1.0,g'
145 REWRITE2 = $(REWRITE) -e 's,@''framework_version@,2.0,g'
146 REWRITE2_1 = $(REWRITE) -e 's,@''framework_version@,2.1,g'
147 REWRITE1_DEBUG = $(REWRITE_DEBUG) -e 's,@''framework_version@,1.0,g'
148 REWRITE2_DEBUG = $(REWRITE_DEBUG) -e 's,@''framework_version@,2.0,g'
150 mono-service: mono-service.in Makefile
151 $(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/mono-service.in > $@.tmp
154 mono-service2: mono-service.in Makefile
155 $(REWRITE2) -e 's,@''exe_name@,$@,g' $(srcdir)/mono-service.in > $@.tmp
158 nunit-console: script.in Makefile
159 $(REWRITE1_DEBUG) -e 's,@''exe_name@,nunit-console,g' $(srcdir)/script.in > $@.tmp
162 nunit-console2: script.in Makefile
163 $(REWRITE2_DEBUG) -e 's,@''exe_name@,nunit-console,g' $(srcdir)/script.in > $@.tmp
166 smcs: smcs.in Makefile
167 $(REWRITE2_1) -e "s,@""exe_name@,smcs,g" $(srcdir)/smcs.in > $@.tmp
170 $(scripts_1_0): script.in Makefile
171 $(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/script.in > $@.tmp
174 $(scripts_1_0_umask): script_umask.in Makefile
175 $(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/script_umask.in > $@.tmp
178 $(scripts_1_0_compat): script.in Makefile
179 t=`basename $@ 1`; $(REWRITE1) -e "s,@exe_name@,$$t,g" $(srcdir)/script.in > $@.tmp
182 $(scripts_defaults): script.in Makefile
183 $(REWRITE2) -e "s,@exe_name@,$@,g" $(srcdir)/script.in > $@.tmp
186 $(scripts_2_0): script.in Makefile
187 n=`echo $@ | sed 's,2$$,,'`; \
188 $(REWRITE2) -e "s,@""exe_name@,$$n,g" $(srcdir)/script.in > $@.tmp