update known-issues
[mono.git] / scripts / Makefile.am
index d738e6b1d6615bfb41e17ab766982233f3d04cba..8aa56b4197b5b34cfad908031ef3616406f617e7 100644 (file)
-EXTRA_DIST = mcs.in mbas.in ilasm.in cilc.in monoresgen.in secutil.in sqlsharp.in xsd.in wsdl.in
+bin_SCRIPTS = \
+       $(scripts_1_0)          \
+       $(scripts_1_0_umask)    \
+       $(scripts_2_0)          \
+       $(scripts_2_1)          \
+       $(scripts_service)      \
+       $(scripts_nunit)        \
+       $(scripts_rpmhelpers)
 
-bin_SCRIPTS = mcs mbas ilasm cilc monoresgen secutil sqlsharp xsd wsdl
+scripts_1_0 = \
+       al                      \
+       caspol                  \
+       cert2spc                \
+       certmgr                 \
+       chktrust                \
+       cilc                    \
+       disco                   \
+       dtd2xsd                 \
+       dtd2rng                 \
+       gacutil                 \
+       genxs                   \
+       ilasm                   \
+       installvst              \
+       macpack                 \
+       mbas                    \
+       mcs                     \
+       mjs                     \
+       mkbundle                \
+       monop                   \
+       mono-api-diff           \
+       mono-api-info           \
+       mono-shlib-cop          \
+       mono-xmltool            \
+       mozroots                \
+       permview                \
+       prj2make                \
+       resgen                  \
+       secutil                 \
+       setreg                  \
+       signcode                \
+       soapsuds                \
+       sqlsharp                \
+       wsdl                    \
+       xsd
 
-CLEANFILES = mcs mbas ilasm cilc monoresgen secutil sqlsharp xsd wsdl
+scripts_1_0_umask = \
+       makecert                \
+       sn
 
-if X86
-MONO_INTERP = mono
+scripts_2_0 = \
+       al2                     \
+       gmcs                    \
+       httpcfg                 \
+       ilasm2                  \
+       mkbundle2               \
+       mono-api-info2          \
+       monop2                  \
+       resgen2                 \
+       wsdl2                   \
+       sgen                    \
+       xbuild
+
+scripts_2_1 = smcs
+scripts_service = mono-service mono-service2
+scripts_nunit = nunit-console nunit-console2
+scripts_rpmhelpers = mono-find-provides mono-find-requires
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA= mono-nunit.pc
+
+CLEANFILES = $(scripts_1_0) $(scripts_1_0_umask) $(scripts_2_0) $(scripts_2_1) gmcs mono-service mono-service2
+DISTCLEANFILES = $(pkgconfig_DATA) $(scripts_rpmhelpers)
+
+EXTRA_DIST =                   \
+       script.in              \
+       script_umask.in        \
+       smcs.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
+mono_interp = mint
 endif
 
-mcs: mcs.in
-       sed -e 's^\@bindir\@^$(bindir)^g' -e 's^\@mono_interp\@^$(MONO_INTERP)^g' < $(srcdir)/mcs.in > mcs.tmp \
-       && mv mcs.tmp mcs 
+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_COMMON = 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'
+
+REWRITE = $(REWRITE_COMMON) -e 's,@''mono_interp@,$(mono_interp),g'
+REWRITE_DEBUG = $(REWRITE_COMMON) -e 's,@''mono_interp@,$(mono_interp) --debug,g'
 
+REWRITE1 = $(REWRITE) -e 's,@''framework_version@,1.0,g'
+REWRITE2 = $(REWRITE) -e 's,@''framework_version@,2.0,g'
+REWRITE2_1 = $(REWRITE) -e 's,@''framework_version@,2.1,g'
+REWRITE1_DEBUG = $(REWRITE_DEBUG) -e 's,@''framework_version@,1.0,g'
+REWRITE2_DEBUG = $(REWRITE_DEBUG) -e 's,@''framework_version@,2.0,g'
 
-mbas: mbas.in
-       sed -e 's^\@bindir\@^$(bindir)^g' -e 's^\@mono_interp\@^$(MONO_INTERP)^g' < $(srcdir)/mbas.in > mbas.tmp \
-       && mv mbas.tmp mbas 
+mono-service: mono-service.in Makefile
+       $(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/mono-service.in > $@.tmp
+       mv $@.tmp $@
 
-ilasm: ilasm.in
-       sed -e 's^\@bindir\@^$(bindir)^g' -e 's^\@mono_interp\@^$(MONO_INTERP)^g' < $(srcdir)/ilasm.in > ilasm.tmp \
-       && mv ilasm.tmp ilasm
+mono-service2: mono-service.in Makefile
+       $(REWRITE2) -e 's,@''exe_name@,$@,g' $(srcdir)/mono-service.in > $@.tmp
+       mv $@.tmp $@
 
-cilc: cilc.in
-       sed -e 's^\@bindir\@^$(bindir)^g' -e 's^\@mono_interp\@^$(MONO_INTERP)^g' < $(srcdir)/cilc.in > cilc.tmp \
-       && mv cilc.tmp cilc
+nunit-console: script.in Makefile
+       $(REWRITE1_DEBUG) -e 's,@''exe_name@,nunit-console,g' $(srcdir)/script.in > $@.tmp
+       mv $@.tmp $@
 
-monoresgen: monoresgen.in
-       sed -e 's^\@bindir\@^$(bindir)^g' -e 's^\@mono_interp\@^$(MONO_INTERP)^g' < $(srcdir)/monoresgen.in > monoresgen.tmp \
-       && mv monoresgen.tmp monoresgen
+nunit-console2: script.in Makefile
+       $(REWRITE2_DEBUG) -e 's,@''exe_name@,nunit-console,g' $(srcdir)/script.in > $@.tmp
+       mv $@.tmp $@
 
-secutil: secutil.in
-       sed -e 's^\@bindir\@^$(bindir)^g' -e 's^\@mono_interp\@^$(MONO_INTERP)^g' < $(srcdir)/secutil.in > secutil.tmp \
-       && mv secutil.tmp secutil
+smcs: smcs.in Makefile
+       $(REWRITE2_1) -e "s,@""exe_name@,gmcs,g" $(srcdir)/smcs.in > $@.tmp
+       mv $@.tmp $@
 
-sqlsharp: sqlsharp.in
-       sed -e 's^\@bindir\@^$(bindir)^g' -e 's^\@mono_interp\@^$(MONO_INTERP)^g' < $(srcdir)/sqlsharp.in > sqlsharp.tmp \
-       && mv sqlsharp.tmp sqlsharp
+$(scripts_1_0): script.in Makefile
+       $(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/script.in > $@.tmp
+       mv $@.tmp $@
 
-xsd: xsd.in
-       sed -e 's^\@bindir\@^$(bindir)^g' -e 's^\@mono_interp\@^$(MONO_INTERP)^g' < $(srcdir)/xsd.in > xsd.tmp \
-       && mv xsd.tmp xsd
+$(scripts_1_0_umask): script_umask.in Makefile
+       $(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/script_umask.in > $@.tmp
+       mv $@.tmp $@
 
-wsdl: wsdl.in
-       sed -e 's^\@bindir\@^$(bindir)^g' -e 's^\@mono_interp\@^$(MONO_INTERP)^g' < $(srcdir)/wsdl.in > wsdl.tmp \
-       && mv wsdl.tmp wsdl
+$(scripts_2_0): script.in Makefile
+       n=`echo $@ | sed 's,2$$,,'`; \
+       $(REWRITE2) -e "s,@""exe_name@,$$n,g" $(srcdir)/script.in > $@.tmp
+       mv $@.tmp $@