contrib/hgsh/Makefile
author Pierre-Yves David <pierre-yves.david@fb.com>
Thu, 15 Oct 2015 02:15:43 +0100
changeset 26723 52d08a93de1f
parent 2341 dbbe7f72d15a
permissions -rw-r--r--
destupdate: extract logic based on obsolescence marker in its own function One of the main goal of having consolidated destination function is to allow extension to play with this logic. We extract sub logic to make is wrapping more practical.

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