# $Id: Makefile,v 1.1.1.1.2.2 1998/01/20 11:09:32 itojun Exp $ # # SRC should be used only in 'backup-sys'. # otherwise we will not be able to override SYS. SRC= /usr/src SYS= $(SRC)/sys # safety sentinel .TARGET: msg msg: @echo "welcome to PAO world! read documents first." # alias for dummies all: patch install-include devices tools install-tools kernel: patch install-include userland: kernel devices tools install-tools # updating the kernel source backup-sys: -cd $(SRC) && mkdir -p sys.ORG cd $(SRC)/sys.ORG && ((chdir ../sys ; tar cf - .) | tar xvf -) patch: cp $(.CURDIR)/sys/i386/isa/* $(SYS)/i386/isa cp $(.CURDIR)/sys/i386/conf/* $(SYS)/i386/conf cp $(.CURDIR)/sys/i386/include/* $(SYS)/i386/include cd $(SYS) && patch -p1 < $(.CURDIR)/sys-pao.diff additional-driver: cp $(.CURDIR)/sys/i386/isa/* $(SYS)/i386/isa cp $(.CURDIR)/sys/i386/conf/* $(SYS)/i386/conf cp $(.CURDIR)/sys/i386/include/* $(SYS)/i386/include install-include: cd $(SYS)/i386/include && \ cp -p apm_bios.h clock.h cpu.h if_cnwioctl.h scc.h wavelan.h \ /usr/include/machine cp -p $(SYS)/pccard/*.h /usr/include/pccard devices: cd /dev && sh MAKEDEV card0 card1 card2 card3 apm tools: (cd $(.CURDIR)/../sbin; make ) (cd $(.CURDIR)/../usr.sbin; make ) install-tools: tools (cd $(.CURDIR)/../sbin; make ; make install) (cd $(.CURDIR)/../usr.sbin; make ; make install)