diff Makefile.in @ 167:85ec50267440 r20-3b10

Import from CVS: tag r20-3b10
author cvs
date Mon, 13 Aug 2007 09:45:46 +0200
parents 5a88923fcbfe
children 929b76928fce
line wrap: on
line diff
--- a/Makefile.in	Mon Aug 13 09:44:44 2007 +0200
+++ b/Makefile.in	Mon Aug 13 09:45:46 2007 +0200
@@ -208,6 +208,9 @@
 ## The makefiles of the directories in ${MAKE_SUBDIR}.
 SUBDIR_MAKEFILES = @SUBDIR_MAKEFILES@
 
+## Subdirectories to `make install-arch-dep' recursively
+INSTALL_ARCH_DEP_SUBDIR = @INSTALL_ARCH_DEP_SUBDIR@
+
 ## Subdirectories to install, and where they'll go.
 ## lib-src's makefile knows how to install it, so we don't do that here.
 ## When installing the info files, we need to do special things to
@@ -299,10 +302,11 @@
 	 echo "#define PURESIZE_ADJUSTMENT 0") > $@
 
 src:	@SRC_SUBDIR_DEPS@ FRC.src
+pkg-src/tree-x: pkg-src/FRC.tree-x
 lib-src: FRC.lib-src
 lwlib:	FRC.lwlib
 dynodump: FRC.dynodump
-FRC.src FRC.lib-src FRC.lwlib FRC.dynodump:
+FRC.src FRC.lib-src FRC.lwlib FRC.dynodump pkg-src/FRC.tree-x:
 
 .RECURSIVE: ${SUBDIR}
 
@@ -322,10 +326,13 @@
 lwlib/Makefile: ${srcdir}/lwlib/Makefile.in.in config.status
 	./config.status
 
-lwlib/config.h: ${srcdir}/lwlib/config.h.in
+pkg-src/tree-x/Makefile: ${srcdir}/pkg-src/tree-x/Makefile.in.in config.status
+	./config.status
+
+src/config.h: ${srcdir}/src/config.h.in
 	./config.status && touch $@
 
-src/config.h: ${srcdir}/src/config.h.in
+lwlib/config.h: ${srcdir}/lwlib/config.h.in
 	./config.status && touch $@
 
 ## ==================== Installation ====================
@@ -358,21 +365,18 @@
 install: all install-arch-dep install-arch-indep;
 
 install-arch-dep: mkdir
-	cd lib-src && \
-	  $(MAKE) install $(MFLAGS) prefix=${prefix} \
+	for subdir in ${INSTALL_ARCH_DEP_SUBDIR}; do \
+	( cd $${subdir} && $(MAKE) install $(MFLAGS) prefix=${prefix} \
 	    exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \
-	    archlibdir=${archlibdir}
-	if [ `(cd ${archlibdir} && $(pwd))` != `(cd ./lib-src && $(pwd))` ]; \
-	then \
+	    archlibdir=${archlibdir} ) ; done
+	if test `(cd ${archlibdir} && $(pwd))` != `(cd lib-src && $(pwd))`; then \
 	   ${INSTALL_DATA} lib-src/DOC ${archlibdir}/DOC ; \
-	   for subdir in `find ${archlibdir} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \
-	     (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; \
-	   done ; \
+	   for subdir in `find ${archlibdir} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; \
+	     do (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; done ; \
 	else true; fi
 	${INSTALL_PROGRAM} src/xemacs ${bindir}/xemacs-${version}
 	-chmod 0755 ${bindir}/xemacs-${version}
-	$(RM) ${bindir}/xemacs
-	cd ${bindir} && ${LN_S} xemacs-${version} ./xemacs
+	cd ${bindir} && $(RM) ./xemacs && ${LN_S} xemacs-${version} ./xemacs
 
 install-arch-indep: mkdir
 	-@set ${COPYDESTS} ; \