contrib/hgsh/Makefile
author Jun Wu <quark@fb.com>
Sun, 10 Apr 2016 22:58:11 +0100
changeset 28853 d11548b4ae45
parent 2341 dbbe7f72d15a
permissions -rw-r--r--
chg: check lockfd at freecmdserveropts We check for sockdirfd at freecmdserveropts but not lockfd, which is a bit strange to people new to the code. Add a comment and an assert to make it clear that lockfd should be closed earlier.

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