[llvm-commits] CVS: llvm/Makefile.rules
Reid Spencer
reid at x10sys.com
Wed Dec 8 14:58:44 PST 2004
Changes in directory llvm:
Makefile.rules updated: 1.255 -> 1.256
---
Log message:
Implement the LLVM_DO_NOT_BUILD feature. If a file of that name is
present in a directory that LLVM normally builds, it will skip building
the directory entirely. This is useful for allowing a bunch of projects to
live in the source tree but not be compiled from time to time.
---
Diffs of the changes: (+12 -5)
Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.255 llvm/Makefile.rules:1.256
--- llvm/Makefile.rules:1.255 Tue Dec 7 22:34:51 2004
+++ llvm/Makefile.rules Wed Dec 8 16:58:34 2004
@@ -231,7 +231,6 @@
CXX.Flags += -v
LD.Flags += -v
VERBOSE := 1
-else
endif
# Adjust settings for verbose mode
@@ -370,7 +369,9 @@
$(MKDIR) $$dir; \
cp $(BUILD_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
fi; \
- ($(MAKE) -C $$dir $@ ) || exit 1; \
+ if [ ! -f $$dir/LLVM_DO_NOT_BUILD ]; then \
+ ($(MAKE) -C $$dir $@ ) || exit 1; \
+ fi ; \
done
endif
@@ -385,7 +386,9 @@
$(MKDIR) $$dir; \
cp $(BUILD_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
fi; \
- ($(MAKE) -C $$dir $@ ) || exit 0; \
+ if [ ! -f $$dir/LLVM_DO_NOT_BUILD ]; then \
+ ($(MAKE) -C $$dir $@ ) || exit 0; \
+ fi ; \
done
endif
@@ -411,7 +414,9 @@
$(MKDIR) $(@D); \
cp $(BUILD_SRC_DIR)/$(@D)/Makefile $(@D)/Makefile; \
fi; \
- $(MAKE) -C $(@D) $(subst $(@D)/.make,,$@)
+ if [ ! -f $$dir/LLVM_DO_NOT_BUILD ]; then \
+ $(MAKE) -C $(@D) $(subst $(@D)/.make,,$@) ; \
+ fi
endif
#---------------------------------------------------------
@@ -429,7 +434,9 @@
$(MKDIR) $$dir; \
cp $(BUILD_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
fi; \
- ($(MAKE) -C$$dir $@ ) || exit 1; \
+ if [ ! -f $$dir/LLVM_DO_NOT_BUILD ]; then \
+ ($(MAKE) -C$$dir $@ ) || exit 1; \
+ fi ; \
fi \
done
endif
More information about the llvm-commits
mailing list