llvm.org GIT mirror llvm / 45eeed9
Two dist-check related changes: 1. Allow DIST_CHECK_CONFIG_OPTION to specify a set of options to be passed to the configure script during the dist-check target. This allows things to be passed down on a project basis so the configure doesn't fail. 2. Use the tar | (cd ; tar ) idiom to copy files which is more flexible than using the cp command. THis allows us to exclude CVS .svn directories at source rather than stripping them out of the tar ball. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22166 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 14 years ago
2 changed file(s) with 16 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
1616 EXTRA_DIST := test llvm.spec include
1717
1818 include $(LEVEL)/Makefile.common
19
20 # Specify options to pass to configure script when we're
21 # running the dist-check target
22 DIST_CHECK_CONFIG_OPTIONS = --with-llvmgccdir=$(LLVMGCCDIR)
1923
2024 .PHONY: debug-opt-prof
2125 debug-opt-prof:
13651365 gunzip -c $(DistTarGZip) | $(TAR) xf - && \
13661366 cd build && \
13671367 ../$(DistName)/configure --prefix="$(DistCheckDir)/install" \
1368 --srcdir=../$(DistName) && \
1368 --srcdir=../$(DistName) $(DIST_CHECK_CONFIG_OPTIONS) && \
13691369 $(MAKE) all && \
13701370 $(MAKE) check && \
13711371 $(MAKE) install && \
14311431 if test -d "$$from_dir/$$file"; then \
14321432 if test -d "$(PROJ_SRC_DIR)/$$file" && \
14331433 test "$$from_dir" != "$(PROJ_SRC_DIR)" ; then \
1434 $(CP) -pR "$(PROJ_SRC_DIR)/$$file" "$$to_dir" || exit 1; \
1434 cd $(PROJ_SRC_DIR) ; \
1435 $(TAR) cf - $$file --exclude .svn --exclude CVS | \
1436 ( cd $$to_dir ; $(TAR) xf - ) ; \
1437 cd $(PROJ_OBJ_DIR) ; \
1438 else \
1439 cd $$from_dir ; \
1440 $(TAR) cf - $$file --exclude .svn --exclude CVS | \
1441 ( cd $$to_dir ; $(TAR) xf - ) ; \
1442 cd $(PROJ_OBJ_DIR) ; \
14351443 fi; \
1436 $(CP) -pR $$from_dir/$$file $$to_dir || exit 1; \
14371444 elif test -f "$$from_dir/$$file" ; then \
14381445 $(CP) -p "$$from_dir/$$file" "$(DistDir)/$$file" || exit 1; \
14391446 elif test -L "$$from_dir/$$file" ; then \
14541461 fi; \
14551462 done
14561463 $(Verb) if test "$(DistDir)" = "$(TopDistDir)" ; then \
1457 $(EchoCmd) Eliminating CVS directories from distribution ; \
1458 $(RM) -rf `find $(TopDistDir) -type d -name CVS -print` ;\
1464 $(EchoCmd) Eliminating CVS/.svn directories from distribution ; \
1465 $(RM) -rf `find $(TopDistDir) -type d \( -name CVS -o -name .svn \) -print` ;\
14591466 $(MAKE) dist-hook ; \
14601467 $(FIND) $(TopDistDir) -type d ! -perm -777 -exec chmod a+rwx {} \; \
14611468 -o ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; \