From: Tor Arntsen (tor@tss.no)
Date: 05/07/93


From: tor@tss.no (Tor Arntsen)
Subject: Re: problems with 0.99.9 kernel
Date: 7 May 1993 05:02:56 -0400

About forgetting to edit the Makefile (keyboard etc)..

I never touch /usr/src/linux/Makefile . I have a file named 'makefile'
which I just copy into the /usr/src/linux directory each time I upgrade
the kernel sources (and I do that quite often sometimes,
testing ALPHA-diffs etc.).

GNU make selects 'makefile' before 'Makefile' if it can find one.

In my 'makefile' I have put my standard options, and the targets I need.
It looks something like this:
#
STDOPTIONS = KEYBOARD="-DKBD_NO -DKBDFLAGS=0" \
                  SOUND_SUPPORT="" \
                  RAMDISK=-DRAMDISK=0 SVGA_MODE=-DSVGA_MODE=NORMAL_VGA
.EXPORT_ALL_VARIABLES:

dep depend:
                make -f Makefile ROOT_DEV="" $(STDOPTIONS) depend

Version:
                make -f Makefile ROOT_DEV="" $(STDOPTIONS) Version

config:
                make -f Makefile ROOT_DEV="" $(STDOPTIONS) config
soundconf:
                make -f Makefile ROOT_DEV="" $(STDOPTIONS) soundconf

clean:
                make -f Makefile ROOT_DEV="" $(STDOPTIONS) clean

lilo:
                make -f Makefile ROOT_DEV="" $(STDOPTIONS) lilo
#
etc. You see the point.
Sometimes I have to update 'makefile' (as for the soundconf thing above,
so 'make config' would work), but I have not touched the Makefile since
last June, I think.

Ahh, this ROOT_DEV="" above.. I'm using Lilo, and Lilo takes care of that.

Cheers,
Tor (tor@tss.no)