Addition to the linux Makefile

Bo Branten (bosse@ing.umu.se)
Tue, 21 Jul 1998 21:14:37 +0200


This addition to linux/Makefile simplifies organazing all theese
annoyingly fluctuating include files.

> includes_install:
> @( \
> USR_SRC=/usr/src; \
> INC_DIR=linux-$${VERSION}.$${PATCHLEVEL}.$${SUBLEVEL}.`cat .version`; \
> INC_PATH=$${USR_SRC}/$${INC_DIR}/include; \
> mkdir -p $${INC_PATH}; \
> cp -R $${HPATH}/asm-generic $${HPATH}/asm-$${ARCH} $${HPATH}/config \
> $${HPATH}/linux $${HPATH}/net $${HPATH}/scsi $${INC_PATH}; \
> ( cd $${INC_PATH}; ln -sf asm-$${ARCH} asm); \
> if [ ! -e $${USR_SRC}/linux -o -L $${USR_SRC}/linux ]; then \
> (cd $${USR_SRC}; rm -f linux; ln -sf $${INC_DIR} linux); \
> fi; \
> )

/Bo Branten

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html