Date: Sun, 25 Jan 2004 16:18:24 +0100 From: Jens Schweikhardt <schweikh@schweikhardt.net> To: current@freebsd.org Subject: make(1) and SUBDIR assignments Message-ID: <20040125151824.GA79958@schweikhardt.net>
next in thread | raw e-mail | index | archive | help
hello, world\n I'm trying to selectively install binaries in the source tree, i.e. to only install bin/dd and bin/df this is what I hoped would work: root@hal9000:/usr/src # make buildworld # succeeds root@hal9000:/usr/src # cd bin root@hal9000:/usr/src/bin # make install SUBDIR='dd df' But it fails: ===> dd "/usr/share/mk/bsd.subdir.mk", line 60: Inconsistent operator for dd "/usr/share/mk/bsd.subdir.mk", line 66: warning: duplicate script for target "dd" ignored make: fatal errors encountered -- cannot continue *** Error code 1 Stop in /share/HEAD/src/bin. (-CURRENT sources and /usr/share/mk/* as of today). Is this 1) a bug somewhere (though nothings seems to be wrong with bsd.subdir.mk) 2) me being confused about how SUBDIR is intended to be used 3) something else Yes, I know I can workaround by cd /usr/src/bin/dd; make install cd /usr/src/bin/df; make install But why do all the src/*/Makefiles assign the list of subdirs to SUBDIR and DTRT, but I can't from the outside? Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040125151824.GA79958>