NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/43356: bsd.subdir.mk: target <subdir> does not work



>Number:         43356
>Category:       bin
>Synopsis:       bsd.subdir.mk: target <subdir> does not work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 25 22:50:01 +0000 2010
>Originator:     Aleksey Cheusov
>Release:        NetBSD 5.0_STABLE
>Organization:
>Environment:
System: NetBSD asrock.chizhovka.net 5.0_STABLE NetBSD 5.0_STABLE (GENERIC) #0: 
Sat Feb 20 12:33:43 EET 2010 
cheusov%asrock.chizhovka.net@localhost:/srv/obj/sys/arch/amd64/compile/GENERIC 
amd64
Architecture: x86_64
Machine: amd64
>Description:
bsd.README says
       bsd.subdir.mk:
                ...
                There is also a default target which allows the command
                "make subdir" where subdir is any directory listed in
                ${SUBDIR}.

Target <subdir> actually does not work both with
/usr/share/mk/bsd.subdir.mk and /usr/pkg/share/mk/bsd.subdir.mk.

>How-To-Repeat:
==========================================================
0 mytest>ls -la
total 20
drwxr-xr-x   4 cheusov  10001   512 May 25 23:51 .
drwxr-xr-x  65 cheusov  10001  2048 May 25 23:50 ..
-rw-r--r--   1 cheusov  10001    48 May 25 23:50 Makefile
drwxr-xr-x   2 cheusov  10001   512 May 25 23:51 test5
drwxr-xr-x   2 cheusov  10001   512 May 25 23:51 test50
0 mytest>cat Makefile
SUBDIR=         test50 test5

.include <bsd.subdir.mk>
0 mytest>cat test5/Makefile
all:
        echo 5
0 mytest>cat test50/Makefile
all:
        echo 50
0 mytest>find . -type f
./test50/Makefile
./Makefile
./test5/Makefile
0 mytest>make test5
`test5' is up to date.
0 mytest>make test50
`test50' is up to date.
0 mytest>
==========================================================
I expect that "make test5" should print 5 and "make test50" should print 50 .

>Fix:



Home | Main Index | Thread Index | Old Index