contrib/hgsh/Makefile
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 02 Feb 2023 17:34:09 +0100
changeset 50622 886d05ed9a46
parent 2341 dbbe7f72d15a
permissions -rw-r--r--
safehasattr: pass attribute name as string instead of bytes This is a step toward replacing `util.safehasattr` usage with plain `hasattr`. The builtin function behave poorly in Python2 but this was fixed in Python3. These change are done one by one as they tend to have a small odd to trigger puzzling breackage.

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