1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#!/usr/bin/make -f
# This file is a part of zmk test system.
include zmk/internalTest.mk
t:: all install uninstall clean
$(eval $(ZMK.isolateHostToolchain))
all: all.log
GREP -qFx 'cc -MMD$(if $(ZMK.test.IsOutOfTreeBuild), -MF hello-hello.d) -c -o hello-hello.o $(ZMK.test.OutOfTreeSourcePath)hello.m' <$<
GREP -qFx 'cc -o hello hello-hello.o -lobjc' <$<
install: install.log
GREP -qFx 'install -d /usr/local/bin' <$<
GREP -qFx 'install -m 0755 hello /usr/local/bin/hello' <$<
uninstall: uninstall.log
GREP -qFx 'rm -f /usr/local/bin/hello' <$<
clean: clean.log
GREP -qFx 'rm -f hello' <$<
GREP -qFx 'rm -f ./hello-hello.o' <$<
|