Subject: port-i386/1074: genassym should depend on Makefile and be removed by "make clean"
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: None <barrett@ee.und.ac.za>
List: netbsd-bugs
Date: 05/21/1995 10:50:03
>Number: 1074
>Category: port-i386
>Synopsis: genassym should depend on Makefile and be removed by "make clean"
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 21 10:50:02 1995
>Originator: Alan Barrett
>Organization:
not much
>Release: NetBSD-current 1995-05-20
>Environment:
System: NetBSD daisy.ee.und.ac.za 1.0A NetBSD 1.0A (DAISY) #0: Sun Jan 29 18:06:13 GMT+0200 1995 barrett@daisy.ee.und.ac.za:/usr/src/sys/arch/i386/compile/DAISY i386
>Description:
When the kernel configuration is changed, the "genassym" program
should be rebuilt, because it depends on configuration options.
Also, "make clean" in teh kernel compile directory should remove
"genassym".
I noticed these problems when I added COMPAT_LINUX to my i386
configuration, but other architectures also appear to have one
or both of these problems.
>How-To-Repeat:
Build an i386 kernel without COMPAT_LINUX.
Add COMPAT_LINUX to the kenel config file and run config.
Go to the compile directory, and do "make clean && make depend
&& make locore.o".
Because the old genassym is not removed by make clean or
rebuilt by make, there will be errors in making locore.o.
>Fix:
*** Makefile.i386.old Wed May 17 12:06:22 1995
--- Makefile.i386 Sun May 21 19:29:20 1995
***************
*** 103,107 ****
clean:
rm -f eddep *netbsd netbsd.gdb tags vnode_if.[ch] *.o locore.i \
! [a-z]*.s [Ee]rrs linterrs makelinks
lint: /tmp param.c
--- 103,107 ----
clean:
rm -f eddep *netbsd netbsd.gdb tags vnode_if.[ch] *.o locore.i \
! [a-z]*.s [Ee]rrs linterrs makelinks genassym
lint: /tmp param.c
***************
*** 130,133 ****
--- 130,136 ----
# depend on maxusers
assym.s: Makefile
+
+ # depend on configuration
+ genassym: Makefile
# depends on KDB (cons.o also depends on GENERIC)
>Audit-Trail:
>Unformatted: