##// END OF EJS Templates
chg: allows default hg path to be overridden...
Jun Wu -
r28605:baa07320 default
parent child Browse files
Show More
@@ -7,6 +7,9 b' OBJS = $(SRCS:.c=.o)'
7 CFLAGS ?= -O2 -Wall -Wextra -pedantic -g
7 CFLAGS ?= -O2 -Wall -Wextra -pedantic -g
8 CPPFLAGS ?= -D_FORTIFY_SOURCE=2
8 CPPFLAGS ?= -D_FORTIFY_SOURCE=2
9 override CFLAGS += -std=gnu99
9 override CFLAGS += -std=gnu99
10 ifdef HGPATH
11 override CPPFLAGS += -DHGPATH=\"$(HGPATH)\"
12 endif
10
13
11 DESTDIR =
14 DESTDIR =
12 PREFIX = /usr/local
15 PREFIX = /usr/local
@@ -194,7 +194,11 b' static const char *gethgcmd(void)'
194 if (!hgcmd || hgcmd[0] == '\0')
194 if (!hgcmd || hgcmd[0] == '\0')
195 hgcmd = getenv("HG");
195 hgcmd = getenv("HG");
196 if (!hgcmd || hgcmd[0] == '\0')
196 if (!hgcmd || hgcmd[0] == '\0')
197 #ifdef HGPATH
198 hgcmd = (HGPATH);
199 #else
197 hgcmd = "hg";
200 hgcmd = "hg";
201 #endif
198 }
202 }
199 return hgcmd;
203 return hgcmd;
200 }
204 }
General Comments 0
You need to be logged in to leave comments. Login now