1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/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))
# MacOS uses c++, GNU uses g++ by default.
# Pick one for test consistency.
%.log: ZMK.makeOverrides += CXX=c++
all: all.log
GREP -qFx 'c++ -MMD$(if $(ZMK.test.IsOutOfTreeBuild), -MF hello-hello.d) -c -o hello-hello.o $(ZMK.test.OutOfTreeSourcePath)hello.cpp' <$<
GREP -qFx 'c++ -o hello hello-hello.o' <$<
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' <$<
|