Rename this file
[mono.git] / scripts / Makefile.am
index f5f649cd8d890c896d8deec95d36c8d020d37d69..f1014abd16be34e5029483bc350d8a79beb210a9 100644 (file)
@@ -1,6 +1,12 @@
-bin_SCRIPTS = $(scripts_1.0) $(scripts_2.0) gmcs mono-service $(scripts_rpmhelpers)
+bin_SCRIPTS = \
+       $(scripts_1_0)          \
+       $(scripts_1_0_umask)    \
+       $(scripts_2_0)          \
+       $(scripts_service)      \
+       $(scripts_nunit)        \
+       $(scripts_rpmhelpers)
 
-scripts_1.0 = \
+scripts_1_0 = \
        al                      \
        caspol                  \
        cert2spc                \
@@ -9,10 +15,10 @@ scripts_1.0 = \
        cilc                    \
        disco                   \
        dtd2xsd                 \
+       dtd2rng                 \
        gacutil                 \
        genxs                   \
        ilasm                   \
-       makecert                \
        macpack                 \
        mbas                    \
        mcs                     \
@@ -20,32 +26,44 @@ scripts_1.0 = \
        mkbundle                \
        monop                   \
        mono-shlib-cop          \
+       mono-xmltool            \
+       mozroots                \
        permview                \
        prj2make                \
        resgen                  \
        secutil                 \
        setreg                  \
        signcode                \
-       sn                      \
        soapsuds                \
        sqlsharp                \
        wsdl                    \
        xsd
 
-scripts_2.0 = \
+scripts_1_0_umask = \
+       makecert                \
+       sn
+
+scripts_2_0 = \
+       gmcs                    \
+       ilasm2                  \
        monop2                  \
-       wsdl2
+       resgen2                 \
+       wsdl2                   \
+       xbuild
 
+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_2.0) gmcs mono-service
+CLEANFILES = $(scripts_1_0) $(scripts_1_0_umask) $(scripts_2_0) gmcs mono-service mono-service2
 DISTCLEANFILES = $(pkgconfig_DATA) $(scripts_rpmhelpers)
 
 EXTRA_DIST =                   \
        script.in              \
+       script_umask.in        \
        mono-service.in        \
        mono-nunit.pc.in       \
        mono-find-provides.in  \
@@ -65,29 +83,45 @@ plat_bindir = $(bindir)
 mono_instdir = $(prefix)/lib/mono
 endif
 
-REWRITE = sed \
+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'                           \
-       -e 's,@''mono_interp@,$(mono_interp),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'
+REWRITE1_DEBUG = $(REWRITE_DEBUG) -e 's,@''framework_version@,1.0,g'
+REWRITE2_DEBUG = $(REWRITE_DEBUG) -e 's,@''framework_version@,2.0,g'
 
 mono-service: mono-service.in Makefile
        $(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/mono-service.in > $@.tmp
        mv $@.tmp $@
 
-$(scripts_1.0): script.in Makefile
+mono-service2: mono-service.in Makefile
+       $(REWRITE2) -e 's,@''exe_name@,$@,g' $(srcdir)/mono-service.in > $@.tmp
+       mv $@.tmp $@
+
+nunit-console: script.in Makefile
+       $(REWRITE1_DEBUG) -e 's,@''exe_name@,nunit-console,g' $(srcdir)/script.in > $@.tmp
+       mv $@.tmp $@
+
+nunit-console2: script.in Makefile
+       $(REWRITE2_DEBUG) -e 's,@''exe_name@,nunit-console,g' $(srcdir)/script.in > $@.tmp
+       mv $@.tmp $@
+
+$(scripts_1_0): script.in Makefile
        $(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/script.in > $@.tmp
        mv $@.tmp $@
 
-gmcs: script.in Makefile
-       $(REWRITE2) -e 's,@''exe_name@,$@,g' $(srcdir)/script.in > $@.tmp
+$(scripts_1_0_umask): script_umask.in Makefile
+       $(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/script_umask.in > $@.tmp
        mv $@.tmp $@
 
-$(scripts_2.0): script.in Makefile
+$(scripts_2_0): script.in Makefile
        n=`echo $@ | sed 's,2$$,,'`; \
        $(REWRITE2) -e "s,@""exe_name@,$$n,g" $(srcdir)/script.in > $@.tmp
        mv $@.tmp $@