contrib/hgsh/Makefile
author Na'Tosha Bard <natosha@unity3d.com>
Mon, 16 Apr 2012 17:03:39 +0200
changeset 16439 290850e7aa43
parent 2341 dbbe7f72d15a
permissions -rw-r--r--
largefiles: fix cat for largefiles (issue3352) This is a fix to largefiles so that 'hg cat' will work correctly when a largefile is specified. As per discussion on Issue 3352: 1) The file will be printed regardless if it is binary or large. 2) The file is downloaded if it is not readily available (not found in the system cache), so that it can be printed. If the download fails, then we abort.

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