Permalink
Browse files

Changed the Makefiles for ms2gt to accept environment override

  • Loading branch information...
1 parent 5fa2f4e commit 48647def3dfd479b8117d6e9297e8b5037571a83 @davidh-ssec committed Oct 24, 2012
View
@@ -80,20 +80,20 @@ TUTLDIR = $(TIDLDIR)/modis_utils
#
# commands
#
-SHELL = /bin/sh
-CC = cc
-AR = ar
-RANLIB = touch
-CO = co
-MAKEDEPEND = makedepend
-INSTALL = cp
-CP = cp
-CD = cd
-RM = rm -f
-RMDIR = rm -fr
-MKDIR = mkdir -p
-TAR = tar
-COMPRESS = gzip
+SHELL ?= /bin/sh
+CC ?= cc
+AR ?= ar
+RANLIB ?= touch
+CO ?= co
+MAKEDEPEND ?= makedepend
+INSTALL ?= cp
+CP ?= cp
+CD ?= cd
+RM ?= rm -f
+RMDIR ?= rm -fr
+MKDIR ?= mkdir -p
+TAR ?= tar
+COMPRESS ?= gzip
#
# archive file name
View
@@ -39,20 +39,20 @@ UTLDIR = $(IDLDIR)/modis_utils
#
# commands
#
-SHELL = /bin/sh
-CC = cc
-AR = ar
-RANLIB = touch
-CO = co
-MAKEDEPEND = makedepend
-INSTALL = cp
-CP = cp
-CD = cd
-RM = rm -f
-RMDIR = rm -fr
-MKDIR = mkdir -p
-TAR = tar
-COMPRESS = gzip
+SHELL ?= /bin/sh
+CC ?= cc
+AR ?= ar
+RANLIB ?= touch
+CO ?= co
+MAKEDEPEND ?= makedepend
+INSTALL ?= cp
+CP ?= cp
+CD ?= cd
+RM ?= rm -f
+RMDIR ?= rm -fr
+MKDIR ?= mkdir -p
+TAR ?= tar
+COMPRESS ?= gzip
#
# debug or optimization settings
@@ -18,17 +18,17 @@ BINDIR = $(TOPDIR)/bin
#
# commands
#
-SHELL = /bin/sh
-CC = cc
-AR = ar
-RANLIB = touch
-CO = co
-MAKEDEPEND = makedepend
-INSTALL = cp
-CP = cp
-RM = rm -f
-TAR = tar
-COMPRESS = gzip
+SHELL ?= /bin/sh
+CC ?= cc
+AR ?= ar
+RANLIB ?= touch
+CO ?= co
+MAKEDEPEND ?= makedepend
+INSTALL ?= cp
+CP ?= cp
+RM ?= rm -f
+TAR ?= tar
+COMPRESS ?= gzip
#
# archive file name
@@ -19,14 +19,14 @@ BINDIR = $(TOPDIR)/bin
#
# commands
#
-SHELL = /bin/sh
-CC = cc
-CO = co
-MAKEDEPEND = makedepend
-INSTALL = cp
-RM = rm -f
-TAR = tar
-COMPRESS = gzip
+SHELL ?= /bin/sh
+CC ?= cc
+CO ?= co
+MAKEDEPEND ?= makedepend
+INSTALL ?= cp
+RM ?= rm -f
+TAR ?= tar
+COMPRESS ?= gzip
#
# archive file name
@@ -19,14 +19,14 @@ BINDIR = $(TOPDIR)/bin
#
# commands
#
-SHELL = /bin/sh
-CC = cc
-CO = co
-MAKEDEPEND = makedepend
-INSTALL = cp
-RM = rm -f
-TAR = tar
-COMPRESS = gzip
+SHELL ?= /bin/sh
+CC ?= cc
+CO ?= co
+MAKEDEPEND ?= makedepend
+INSTALL ?= cp
+RM ?= rm -f
+TAR ?= tar
+COMPRESS ?= gzip
#
# archive file name
@@ -19,14 +19,14 @@ BINDIR = $(TOPDIR)/bin
#
# commands
#
-SHELL = /bin/sh
-CC = cc
-CO = co
-MAKEDEPEND = makedepend
-INSTALL = cp
-RM = rm -f
-TAR = tar
-COMPRESS = gzip
+SHELL ?= /bin/sh
+CC ?= cc
+CO ?= co
+MAKEDEPEND ?= makedepend
+INSTALL ?= cp
+RM ?= rm -f
+TAR ?= tar
+COMPRESS ?= gzip
#
# archive file name
@@ -19,14 +19,14 @@ BINDIR = $(TOPDIR)/bin
#
# commands
#
-SHELL = /bin/sh
-CC = cc
-CO = co
-MAKEDEPEND = makedepend
-INSTALL = cp
-RM = rm -f
-TAR = tar
-COMPRESS = gzip
+SHELL ?= /bin/sh
+CC ?= cc
+CO ?= co
+MAKEDEPEND ?= makedepend
+INSTALL ?= cp
+RM ?= rm -f
+TAR ?= tar
+COMPRESS ?= gzip
#
# archive file name
@@ -19,14 +19,14 @@ BINDIR = $(TOPDIR)/bin
#
# commands
#
-SHELL = /bin/sh
-CC = cc
-CO = co
-MAKEDEPEND = makedepend
-INSTALL = cp
-RM = rm -f
-TAR = tar
-COMPRESS = gzip
+SHELL ?= /bin/sh
+CC ?= cc
+CO ?= co
+MAKEDEPEND ?= makedepend
+INSTALL ?= cp
+RM ?= rm -f
+TAR ?= tar
+COMPRESS ?= gzip
#
# archive file name
@@ -24,20 +24,20 @@ DOCDIR = Documentation
#
# commands
#
-SHELL = /bin/sh
-CC = cc
-AR = ar
-RANLIB = touch
+SHELL ?= /bin/sh
+CC ?= cc
+AR ?= ar
+RANLIB ?= touch
# Uncomment the next line for MAC OSX
#RANLIB = ranlib
-CO = co
-MAKEDEPEND = makedepend
-INSTALL = cp -f -p
-MKDIR = mkdir -p
-CP = cp -f -p
-RM = rm -f
-TAR = tar
-COMPRESS = gzip
+CO ?= co
+MAKEDEPEND ?= makedepend
+INSTALL ?= cp -f -p
+MKDIR ?= mkdir -p
+CP ?= cp -f -p
+RM ?= rm -f
+TAR ?= tar
+COMPRESS ?= gzip
#
# archive file name
@@ -19,14 +19,14 @@ BINDIR = $(TOPDIR)/bin
#
# commands
#
-SHELL = /bin/sh
-CC = cc
-CO = co
-MAKEDEPEND = makedepend
-INSTALL = cp
-RM = rm -f
-TAR = tar
-COMPRESS = gzip
+SHELL ?= /bin/sh
+CC ?= cc
+CO ?= co
+MAKEDEPEND ?= makedepend
+INSTALL ?= cp
+RM ?= rm -f
+TAR ?= tar
+COMPRESS ?= gzip
#
# archive file name
@@ -19,14 +19,14 @@ BINDIR = $(TOPDIR)/bin
#
# commands
#
-SHELL = /bin/sh
-CC = cc
-CO = co
-MAKEDEPEND = makedepend
-INSTALL = cp
-RM = rm -f
-TAR = tar
-COMPRESS = gzip
+SHELL ?= /bin/sh
+CC ?= cc
+CO ?= co
+MAKEDEPEND ?= makedepend
+INSTALL ?= cp
+RM ?= rm -f
+TAR ?= tar
+COMPRESS ?= gzip
#
# debug or optimization settings
@@ -19,14 +19,14 @@ BINDIR = $(TOPDIR)/bin
#
# commands
#
-SHELL = /bin/sh
-CC = cc
-CO = co
-MAKEDEPEND = makedepend
-INSTALL = cp
-RM = rm -f
-TAR = tar
-COMPRESS = gzip
+SHELL ?= /bin/sh
+CC ?= cc
+CO ?= co
+MAKEDEPEND ?= makedepend
+INSTALL ?= cp
+RM ?= rm -f
+TAR ?= tar
+COMPRESS ?= gzip
#
# archive file name

0 comments on commit 48647de

Please sign in to comment.