[GRASS-SVN] r30773 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 28 00:23:08 EDT 2008


Author: kyngchaos
Date: 2008-03-28 00:23:07 -0400 (Fri, 28 Mar 2008)
New Revision: 30773

Modified:
   grass/trunk/lib/init/Makefile
Log:
cleanup OSX-only targets

Modified: grass/trunk/lib/init/Makefile
===================================================================
--- grass/trunk/lib/init/Makefile	2008-03-27 22:13:49 UTC (rev 30772)
+++ grass/trunk/lib/init/Makefile	2008-03-28 04:23:07 UTC (rev 30773)
@@ -55,10 +55,14 @@
 	$(ETC)/grass_dialog.ico \
 	$(ETC)/grass_sql.ico \
 	$(ETC)/grass-run.sh \
-	$(ETC)/grass-xterm-wrapper \
-	$(ETC)/grass-xterm-mac \
-	$(ETC)/html_browser_mac.sh
+	$(ETC)/grass-xterm-wrapper
 
+ifeq ($(findstring darwin,$(ARCH)),darwin)
+	FILES += \
+		$(ETC)/grass-xterm-mac \
+		$(ETC)/html_browser_mac.sh
+endif
+
 ifneq ($(strip $(MINGW)),)
 	FILES += \
 		$(ARCH_BINDIR)/$(START_UP).bat \
@@ -202,14 +206,12 @@
 	$(INSTALL) -m 755 grass-xterm-wrapper $(ETC)
 
 $(ETC)/grass-xterm-mac: grass-xterm-mac
-	rm -f $@
-	@if [ "`cat ../../include/Make/Platform.make | grep -i '^ARCH.*darwin'`" ] ; then $(INSTALL) -m 755 grass-xterm-mac $(ETC) ; fi
+	$(INSTALL) -m 755 grass-xterm-mac $(ETC)
 
 $(ETC)/prompt.sh: prompt.sh
 	rm -f $@
 	$(INSTALL) -m 755 prompt.sh $(ETC)
 
 $(ETC)/html_browser_mac.sh: html_browser_mac.sh
-	rm -f $@
-	@if [ "`cat ../../include/Make/Platform.make | grep -i '^ARCH.*darwin'`" ] ; then $(INSTALL) -m 755 html_browser_mac.sh $(ETC) ; fi
+	$(INSTALL) -m 755 html_browser_mac.sh $(ETC)
 



More information about the grass-commit mailing list