+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.
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))
# 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)
$(MKINSTALLDIRS) $$dest && cp -p $$f $$dest || exit 1 ; \
done
-$(depsdir)/.stamp:
+%/.stamp:
$(MKINSTALLDIRS) $(@D)
touch $@
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 $< $@
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 $< $@
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) $<; }