[llvm-commits] CVS: llvm/Makefile.rules
Reid Spencer
reid at x10sys.com
Thu Dec 16 00:00:57 PST 2004
Changes in directory llvm:
Makefile.rules updated: 1.269 -> 1.270
---
Log message:
Add a "make spotless" rule for environments with BUILD_OBJ_ROOT not equal
to BUILD_OBJ_SRC. This will save the config.status and mklib files, then
wipe out the BUILD_OBJ_ROOT, copy back config.status and mklib, and then
run config.status to regenerate the makefiles. This target gives you a
completely clean/fresh BUILD_OBJ_ROOT.
---
Diffs of the changes: (+15 -0)
Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.269 llvm/Makefile.rules:1.270
--- llvm/Makefile.rules:1.269 Thu Dec 16 01:36:08 2004
+++ llvm/Makefile.rules Thu Dec 16 02:00:46 2004
@@ -81,6 +81,21 @@
-$(Verb) $(RM) -f $(BUILT_SOURCES)
endif
+ifneq ($(BUILD_OBJ_ROOT),$(BUILD_SRC_ROOT))
+spotless:
+ $(Echo) Wiping out $(BUILD_OBJ_ROOT) and rebuilding configuration.
+ $(Verb) if test -x config.status ; then \
+ $(MV) config.status .. ; \
+ $(MV) mklib .. ; \
+ $(RM) -rf * ; \
+ $(MV) ../config.status . ; \
+ $(MV) ../mklib . ; \
+ ./config.status ; \
+ else \
+ $(EchoCmd) "make spotless" can only be run from $(BUILD_OBJ_ROOT); \
+ fi
+endif
+
$(BUILT_SOURCES) : $(ObjMakefiles)
#------------------------------------------------------------------------
More information about the llvm-commits
mailing list