* rules.make (%/.stamp): Unify all directory creation targets here.
authorRaja R Harinath <harinath@hurrynot.org>
Mon, 18 Feb 2008 06:28:41 +0000 (06:28 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Mon, 18 Feb 2008 06:28:41 +0000 (06:28 -0000)
svn path=/trunk/mcs/; revision=96030

mcs/build/ChangeLog
mcs/build/executable.make
mcs/build/library.make
mcs/build/rules.make
mcs/mcs/Makefile
mcs/tools/compiler-tester/Makefile
mcs/tools/tuner/Makefile

index 4b1c0f2b8c0f599a5763e63961d1709ad9ae360a..212368234520e0823b01700e6b9aa5266722b230 100644 (file)
@@ -1,3 +1,7 @@
+2008-02-18  Raja R Harinath  <harinath@hurrynot.org>
+
+       * rules.make (%/.stamp): Unify all directory creation targets here.
+
 2008-02-17  Raja R Harinath  <harinath@hurrynot.org>
 
        * profiles/net_2_1_bootstrap.make: New.
index f3113385a5ccf9c7cd8eeb44b56a3e17ce7246c2..7f7d690d945cfceb9f4317553dd4e20cb6347039 100644 (file)
@@ -87,12 +87,6 @@ ifndef PROGRAM_COMPILE
 PROGRAM_COMPILE = $(CSCOMPILE)
 endif
 
-ifdef prog_dir
-$(prog_dir)/.stamp:
-       $(MKINSTALLDIRS) $(@D)
-       touch $@
-endif
-
 $(PROGRAM): $(BUILT_SOURCES) $(EXTRA_SOURCES) $(response) $(prog_dir:=/.stamp)
        $(PROGRAM_COMPILE) -target:exe -out:$(base_prog) $(BUILT_SOURCES) $(EXTRA_SOURCES) @$(response)
 ifneq ($(base_prog),$(PROGRAM))
index 4e4dd38a21e710152045b0053eef3d5f2509b1f2..ef4fa233b9cd44ce4d110493008aeff4e74526c3 100644 (file)
@@ -297,10 +297,6 @@ endif
 
 # The library
 
-$(the_libdir)/.stamp $(build_libdir:=/.stamp):
-       $(MKINSTALLDIRS) $(@D)
-       touch $@
-
 $(the_lib): $(the_libdir)/.stamp
 
 $(build_lib): $(response) $(sn) $(BUILT_SOURCES) $(build_libdir:=/.stamp)
index b38031c0d3b82653e3f4f814b0d3c9f5545fd234..11f1267964c61aa2d810b1671e2edd5bce2d418c 100644 (file)
@@ -162,7 +162,7 @@ dist-default:
            $(MKINSTALLDIRS) $$dest && cp -p $$f $$dest || exit 1 ; \
        done
 
-$(depsdir)/.stamp:
+%/.stamp:
        $(MKINSTALLDIRS) $(@D)
        touch $@
 
index 84b40538b37b10528d550796fa7cd61fe7647909..e6f3f780c98fcd25d08de5c6fdb6f4745b7edab8 100644 (file)
@@ -49,13 +49,7 @@ clean-local: clean-program
 clean-program:
        rm -f $(PROGRAM) $(PROGRAM).config
 
-progdir = $(dir $(PROGRAM))
-
-$(progdir)/.stamp:
-       $(MKINSTALLDIRS) $(@D)
-       touch $@
-
-$(PROGRAM) $(PROGRAM).config: $(progdir)/.stamp
+$(PROGRAM) $(PROGRAM).config: $(dir $(PROGRAM))/.stamp
 
 $(PROGRAM): $(topdir)/class/lib/default/mcs.exe
        cp $< $@
index a3a6e5322f81c14467b930c37332cee1af502c11..ac3dd5e358dbbf6df8cdd155f87d1a8d79822000 100644 (file)
@@ -11,10 +11,6 @@ all-local: $(PROGRAM)
 clean-local:
        rm -f $(PROGRAM)
 
-$(dir $(PROGRAM))/.stamp:
-       mkdir -p $(@D)
-       touch $@
-
 $(PROGRAM): $(dir $(PROGRAM))/.stamp
 $(PROGRAM): $(topdir)/class/lib/net_2_1_raw/compiler-tester.exe
        cp $< $@
index a0f640fd3c81bab659823fc0b53859925681027b..86ad35a7a2a297017d44c7e7f9b89768206cbc0c 100644 (file)
@@ -72,10 +72,6 @@ TUNER_STEPS = \
        Mono.Tuner.RemoveSerialization,Mono.Tuner:OutputStep    \
        Mono.Tuner.CheckVisibility,Mono.Tuner   \
 
-$(OUTPUT_DIR)/.stamp:
-       $(MKINSTALLDIRS) $(@D)
-       touch $@
-
 $(OUTPUT_FILES): tune.stamp
        test -f $@ || { rm -f $<; $(MAKE) $<; }