contrib/hgsh/Makefile
author Augie Fackler <augie@google.com>
Tue, 12 Jul 2016 15:34:17 -0400
changeset 29517 f1fdd7e7d434
parent 2341 dbbe7f72d15a
permissions -rw-r--r--
check-code: only treat a # as a line in a t-test if it has a space before it Prior to this, check-code wouldn't notice things like (glob) annotations or similar in a test if they were after a # anywhere in the line. This resolves a defect in a future change, and also exposed a couple of small spots that needed some attention.

CC := gcc
CFLAGS := -g -O2 -Wall -Werror

prefix ?= /usr/bin

hgsh: hgsh.o
	$(CC) -o $@ $<

install: hgsh
	install -m755 hgsh $(prefix)

clean:
	rm -f *.o hgsh