Only export *.cfg files needed for cross-compiling. NSPRPUB_PRE_4_2_CLIENT_BRANCH
authorcls%seawood.org
Wed, 23 Nov 2005 06:25:05 +0000
branchNSPRPUB_PRE_4_2_CLIENT_BRANCH
changeset 3508 9989006673bf438a9b69e023bf8bb2f87cc61b42
parent 3506 dda07f040daa55c336b58f2fdeead600563177cd
child 3510 34dcc277cb455bd314a4fcffdfef7a37dc99f0f6
push idunknown
push userunknown
push dateunknown
bugs304239
Only export *.cfg files needed for cross-compiling. Thanks to Wan-Teh Chang <wtchang@redhat.com> for the patch. Bug #304239 r=cls
pr/include/md/Makefile.in
--- a/pr/include/md/Makefile.in
+++ b/pr/include/md/Makefile.in
@@ -39,38 +39,39 @@
 
 MOD_DEPTH	= ../../..
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(MOD_DEPTH)/config/autoconf.mk
 
-HEADERS = $(wildcard $(srcdir)/*.h)
+# The .cfg files need to be exported and installed to support
+# cross-compilation.
 CONFIGS = $(wildcard $(srcdir)/*.cfg)
 
 include $(topsrcdir)/config/rules.mk
 
 export:: $(MDCPUCFG_H)
-	$(INSTALL) -m 444 $(CONFIGS) $(HEADERS) $(dist_includedir)/md
+	$(INSTALL) -m 444 $(CONFIGS) $(dist_includedir)/md
 	$(INSTALL) -m 444 $(srcdir)/$(MDCPUCFG_H) $(dist_includedir)
 ifeq ($(OS_ARCH),OpenVMS)
 # On OpenVMS mv updates the file's modified time, so we create a hard link.
 	cd $(dist_includedir); \
 	if test ! -f prcpucfg.h; then \
 	    dcl set file /enter=prcpucfg.h $(MDCPUCFG_H); \
 	fi
 else
 	mv -f $(dist_includedir)/$(MDCPUCFG_H) $(dist_includedir)/prcpucfg.h
 endif
 
-real_install::
+install::
 	$(NSINSTALL) -D $(DESTDIR)$(includedir)/md
 	cp $(srcdir)/$(MDCPUCFG_H) $(DESTDIR)$(includedir)/prcpucfg.h
-	$(NSINSTALL) -t -m 644 $(HEADERS) $(DESTDIR)$(includedir)/md
+	$(NSINSTALL) -t -m 644 $(CONFIGS) $(DESTDIR)$(includedir)/md
 
 release:: export
 	@echo "Copying machine-dependent prcpucfg.h"
 	@if test -z "$(BUILD_NUMBER)"; then \
 		echo "BUILD_NUMBER must be defined"; \
 		false; \
 	fi
 	@if test ! -d $(RELEASE_INCLUDE_DIR); then \