contrib/hgsh/Makefile
author Yuya Nishihara <yuya@tcha.org>
Sat, 11 Nov 2017 16:46:41 +0900
branchstable
changeset 34984 cd235d6f851b
parent 2341 dbbe7f72d15a
permissions -rw-r--r--
dispatch: add option to not strip command args parsed by _earlygetopt() This allows us to parse the original args later by full-blown getopt() in order to verify the result of the faulty early parsing. Still we need the 'strip=True' behavior for shell aliases. Note that this series is RFC because it seems to change too much to be included in stable release.

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