contrib/hgsh/Makefile
author Matt Harbison <matt_harbison@yahoo.com>
Mon, 05 Dec 2022 11:46:00 -0500
branchstable
changeset 49831 d5b722ce9864
parent 2341 dbbe7f72d15a
permissions -rw-r--r--
make: add a target for building pyoxidizer tests on macOS The resources seem to be embedded inside the binary, but for some reasons they aren't read there. And since they are embedded, they aren't staged by the build in the `lib` directory like on Windows. So copy them from the repo. We can figure out what's going wrong later.

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