[GRASSLIST:5320] NVIZ makefile issue

Tom Russo russo at bogodyn.org
Wed Jan 12 12:08:05 EST 2005


I'm using GRASS 5.7 on FreeBSD 4.x, which does not use GNU make as its primary
"make" --- GNU make is installed as "gmake"

The NVIZ makefile contains two rules that hardcode "make" instead of 
using "$(MAKE)" which means that if I try to build GRASS by typing "gmake" it
fails in building nviz's html documentation and nvwish.  Using $(MAKE) means
that whatever command the user uses to start the build is used throughout,
which is what I need and which is what is done elsewhere in GRASS.

The attached patch fixes it.  Could someone commit this to the repository?

-- 
Tom Russo    KM5VY     SAR502  DM64ux         http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236 AHTB#1 http://www.qsl.net/~km5vy/
 "When life gives you lemons, find someone with a paper cut."
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/grass/grassrepository/grass51/visualization/nviz/Makefile,v
retrieving revision 1.9
diff -u -u -r1.9 Makefile
--- Makefile	24 Nov 2004 14:02:25 -0000	1.9
+++ Makefile	12 Jan 2005 17:05:44 -0000
@@ -21,7 +21,7 @@
 #
 
 nvwish:
-	cd src ; make
+	cd src ; $(MAKE)
 
 nviz:
 	'rm' -rf $(INSTALL_DIR)
@@ -38,7 +38,7 @@
 	$(INSTALL) scripts/*Index $(INSTALL_DIR)/scripts
 	(cd bitmaps; tar -cf - *  | (cd $(INSTALL_DIR)/bitmaps; tar  -xf - 2>/dev/null ); true)
 	$(INSTALL) scripts/$(NV_VER)_script $(INSTALL_DIR)/scripts
-	(cd html ; make )
+	(cd html ; $(MAKE))
 
 clean: 
 	(cd src && $(MAKE) clean) || exit 1;


More information about the grass-user mailing list