It needs to modift $(destdir) not objdir!
Török Edvin authored on 2009/09/08 17:16:45... | ... |
@@ -741,9 +741,6 @@ distdir: $(DISTFILES) |
741 | 741 |
|| exit 1; \ |
742 | 742 |
fi; \ |
743 | 743 |
done |
744 |
- $(MAKE) $(AM_MAKEFLAGS) \ |
|
745 |
- top_distdir="$(top_distdir)" distdir="$(distdir)" \ |
|
746 |
- dist-hook |
|
747 | 744 |
-test -n "$(am__skip_mode_fix)" \ |
748 | 745 |
|| find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ |
749 | 746 |
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ |
... | ... |
@@ -968,8 +965,8 @@ uninstall-am: uninstall-binSCRIPTS uninstall-pkgconfigDATA |
968 | 968 |
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ |
969 | 969 |
all all-am am--refresh check check-am clean clean-generic \ |
970 | 970 |
clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ |
971 |
- dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-xz \ |
|
972 |
- dist-zip distcheck distclean distclean-generic distclean-hdr \ |
|
971 |
+ dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ |
|
972 |
+ distcheck distclean distclean-generic distclean-hdr \ |
|
973 | 973 |
distclean-libtool distclean-tags distcleancheck distdir \ |
974 | 974 |
distuninstallcheck dvi dvi-am html html-am info info-am \ |
975 | 975 |
install install-am install-binSCRIPTS install-data \ |
... | ... |
@@ -989,9 +986,6 @@ lcov: |
989 | 989 |
quick-check: |
990 | 990 |
($(MAKE); cd unit_tests; $(MAKE) quick-check) |
991 | 991 |
|
992 |
-dist-hook: |
|
993 |
- make -C libclamav/c++ dist-hook |
|
994 |
- |
|
995 | 992 |
# Tell versions [3.59,3.63) of GNU make to not export all variables. |
996 | 993 |
# Otherwise a system limit (for SysV at least) may be exceeded. |
997 | 994 |
.NOEXPORT: |
... | ... |
@@ -65,7 +65,7 @@ LLVM_INCLUDES=-I$(top_srcdir)/llvm/include -I$(top_builddir)/llvm/include |
65 | 65 |
LLVM_DEFS=-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_DEBUG -D_GNU_SOURCE |
66 | 66 |
LLVM_CXXFLAGS=-Woverloaded-virtual -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings |
67 | 67 |
|
68 |
-EXTRA_DIST=llvm |
|
68 |
+EXTRA_DIST=$(top_srcdir)/llvm llvmdejagnu.sh |
|
69 | 69 |
|
70 | 70 |
libllvmsystem_la_CPPFLAGS=$(LLVM_INCLUDES) $(LLVM_DEFS) |
71 | 71 |
libllvmsystem_la_CXXFLAGS=$(LLVM_CXXFLAGS) -fno-exceptions |
... | ... |
@@ -709,7 +709,6 @@ llvmunittest_ExecutionEngine_SOURCES=\ |
709 | 709 |
check_LTLIBRARIES=libllvmbitreader.la libllvmasmprinter.la libllvmbitwriter.la libllvmasmparser.la libgoogletest.la libllvminterpreter.la |
710 | 710 |
check_PROGRAMS=lli llc llvm-as llvmunittest_ADT llvmunittest_Support llvmunittest_VMCore llvmunittest_ExecutionEngine llvmunittest_JIT |
711 | 711 |
check_SCRIPTS=llvmdejagnu.sh |
712 |
- |
|
713 | 712 |
TESTS_ENVIRONMENT=export GMAKE=@GMAKE@; |
714 | 713 |
TESTS=llvmunittest_ADT llvmunittest_Support llvmunittest_VMCore llvmunittest_ExecutionEngine llvmunittest_JIT |
715 | 714 |
@ifGNUmake@ TESTS+=llvmdejagnu.sh |
... | ... |
@@ -767,7 +766,11 @@ build-llvm-for-check: |
767 | 767 |
+$(GMAKE) -C llvm OPTIMIZE_OPTION=-O2 tools-only |
768 | 768 |
|
769 | 769 |
clean-local: |
770 |
- +$(GMAKE) -C llvm clean |
|
770 |
+ +$(GMAKE) -C llvm/test clean |
|
771 |
+ rm -rf llvm/Release llvm/Debug |
|
772 |
+ rm -f *.inc |
|
773 |
+ rm -f llvm/include/llvm/Intrinsics.gen |
|
774 |
+ rm -f llvm/test/site.exp llvm/test/site.bak llvm/test/*.out llvm/test/*.sum llvm/test/*.log |
|
771 | 775 |
|
772 | 776 |
check-llvm: build-llvm-for-check |
773 | 777 |
+$(GMAKE) -C llvm check |
... | ... |
@@ -775,6 +778,9 @@ check-llvm: build-llvm-for-check |
775 | 775 |
|
776 | 776 |
# rm configure generated files |
777 | 777 |
dist-hook: |
778 |
- rm -f llvm/Release/bin/* llvm/Debug/bin/* |
|
779 |
- rm -f llvm/include/llvm/Config/*.h llvm/include/llvm/Config/*.def llvm/Makefile.config llvm/llvm.spec llvm/docs/doxygen.cfg llvm/tools/llvmc/plugins/Base/Base.td tools/llvm-config/llvm-config.in |
|
778 |
+ make -C llvm dist-hook |
|
779 |
+ rm -f $(distdir)/llvm/include/llvm/Config/*.h $(distdir)/llvm/include/llvm/Config/*.def $(distdir)/llvm/Makefile.config $(distdir)/llvm/llvm.spec |
|
780 |
+ rm -f $(distdir)/llvm/docs/doxygen.cfg $(distdir)/llvm/tools/llvmc/plugins/Base/Base.td $(distdir)/llvm/tools/llvm-config/llvm-config.in |
|
781 |
+ rm -f $(distdir)/llvm/include/llvm/Intrinsics.gen |
|
782 |
+ rm -f $(distdir)/llvm/include/llvm/Support/DataTypes.h $(distdir)/llvm/config.log $(distdir)/llvm/config.status |
|
780 | 783 |
|
... | ... |
@@ -966,7 +966,7 @@ LLVM_INCLUDES = -I$(top_srcdir)/llvm/include -I$(top_builddir)/llvm/include |
966 | 966 |
# TODO: HP-UX should have -D_REENTRANT -D_HPUX_SOURCE |
967 | 967 |
LLVM_DEFS = -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_DEBUG -D_GNU_SOURCE |
968 | 968 |
LLVM_CXXFLAGS = -Woverloaded-virtual -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings |
969 |
-EXTRA_DIST = llvm |
|
969 |
+EXTRA_DIST = $(top_srcdir)/llvm llvmdejagnu.sh |
|
970 | 970 |
libllvmsystem_la_CPPFLAGS = $(LLVM_INCLUDES) $(LLVM_DEFS) |
971 | 971 |
libllvmsystem_la_CXXFLAGS = $(LLVM_CXXFLAGS) -fno-exceptions |
972 | 972 |
libllvmsystem_la_LDFLAGS = -pthread |
... | ... |
@@ -6202,7 +6202,11 @@ build-llvm-for-check: |
6202 | 6202 |
+$(GMAKE) -C llvm OPTIMIZE_OPTION=-O2 tools-only |
6203 | 6203 |
|
6204 | 6204 |
clean-local: |
6205 |
- +$(GMAKE) -C llvm clean |
|
6205 |
+ +$(GMAKE) -C llvm/test clean |
|
6206 |
+ rm -rf llvm/Release llvm/Debug |
|
6207 |
+ rm -f *.inc |
|
6208 |
+ rm -f llvm/include/llvm/Intrinsics.gen |
|
6209 |
+ rm -f llvm/test/site.exp llvm/test/site.bak llvm/test/*.out llvm/test/*.sum llvm/test/*.log |
|
6206 | 6210 |
|
6207 | 6211 |
check-llvm: build-llvm-for-check |
6208 | 6212 |
+$(GMAKE) -C llvm check |
... | ... |
@@ -6210,8 +6214,11 @@ check-llvm: build-llvm-for-check |
6210 | 6210 |
|
6211 | 6211 |
# rm configure generated files |
6212 | 6212 |
dist-hook: |
6213 |
- rm -f llvm/Release/bin/* llvm/Debug/bin/* |
|
6214 |
- rm -f llvm/include/llvm/Config/*.h llvm/include/llvm/Config/*.def llvm/Makefile.config llvm/llvm.spec llvm/docs/doxygen.cfg llvm/tools/llvmc/plugins/Base/Base.td tools/llvm-config/llvm-config.in |
|
6213 |
+ make -C llvm dist-hook |
|
6214 |
+ rm -f $(distdir)/llvm/include/llvm/Config/*.h $(distdir)/llvm/include/llvm/Config/*.def $(distdir)/llvm/Makefile.config $(distdir)/llvm/llvm.spec |
|
6215 |
+ rm -f $(distdir)/llvm/docs/doxygen.cfg $(distdir)/llvm/tools/llvmc/plugins/Base/Base.td $(distdir)/llvm/tools/llvm-config/llvm-config.in |
|
6216 |
+ rm -f $(distdir)/llvm/include/llvm/Intrinsics.gen |
|
6217 |
+ rm -f $(distdir)/llvm/include/llvm/Support/DataTypes.h $(distdir)/llvm/config.log $(distdir)/llvm/config.status |
|
6215 | 6218 |
|
6216 | 6219 |
# Tell versions [3.59,3.63) of GNU make to not export all variables. |
6217 | 6220 |
# Otherwise a system limit (for SysV at least) may be exceeded. |