Subject: misc/28710: htdocs/Makefiles specify "make" which causes it to fail on non-NetBSD platforms
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <michael@nosflow.com>
List: netbsd-bugs
Date: 12/19/2004 08:39:00
>Number:         28710
>Category:       misc
>Synopsis:       htdocs/Makefiles specify "make" which causes it to fail on non-NetBSD platforms
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 19 08:39:00 +0000 2004
>Originator:     Michael Wolfson
>Release:        Darwin 7.7.0
>Organization:
>Environment:
Darwin GizMac.nosflow.com 7.7.0 Darwin Kernel Version 7.7.0: Sun Nov  7 16:06:51 PST 2004; root:xnu/xnu-517.9.5.obj~1/RELEASE_PPC  Power Macintosh powerpc

>Description:
When trying to rebuild htdocs, non-NetBSD platforms will fail.  Some of the Makefiles explicitly use "make" instead of a OS-independent macro of some sort.  I had to change them to "bmake" on Darwin to get anywhere.
>How-To-Repeat:
On non-NetBSD platform (with pkgsrc installed):
cd htdocs;bmake
>Fix:
On Darwin, find al Makefiles with "make" and replace with "bmake".  For example:

RCS file: /cvsroot/htdocs/Makefile,v
retrieving revision 1.60
diff -c -r1.60 Makefile
*** Makefile    10 Dec 2004 17:16:25 -0000      1.60
--- Makefile    19 Dec 2004 08:35:53 -0000
***************
*** 61,69 ****
        done;
        
  gallery/events.html: gallery/events.xml
!       cd gallery; make events.html; cd ..;
  
  Changes/index.html: Changes/index.xml
!       cd Changes; make index.html ; cd ..;
  
  .include "${WEB_PREFIX}/share/mk/web.site.mk"
--- 61,69 ----
        done;
        
  gallery/events.html: gallery/events.xml
!       cd gallery; bmake events.html; cd ..;
  
  Changes/index.html: Changes/index.xml
!       cd Changes; bmake index.html ; cd ..;
  
  .include "${WEB_PREFIX}/share/mk/web.site.mk"