1 # Makefile - POSIX Makefile for TopGit tests
2 # Copyright (C) 2017 Kyle J. McKay
6 # Makefile drives the process
7 # Makefile.sh provides POSIX sh support
8 # Makefile.mak does the actual building
9 # ../Makefile.sh provides POSIX sh utility functions
10 # ../Makefile.mt always exists and is always empty (i.e. zero length)
14 # Anything explicitly listed here will always avoid a bogus "up to date" result
16 all prove
test pre-clean
clean post-clean-except-prove-cache post-clean \
17 test-lint test-lint-duplicates test-lint-executable test-lint-shell-syntax \
18 test-lint-filenames run-individual-tests aggregate-results-and-cleanup \
19 aggregate-results TG-TEST-SETTINGS settings
22 __default_target__
: __file_which_should_not_exist
23 +@set
-- && set
-ae
&& MAKE
="$(MAKE)" && . .
/Makefile.sh
&& $(MAKE
) $${GNO_PD_OPT} -e
-f Makefile.mak
26 +@set
-- "$@" && set
-ae
&& MAKE
="$(MAKE)" && . .
/Makefile.sh
&& $(MAKE
) $${GNO_PD_OPT} -e
-f Makefile.mak
"$@"
28 target
: __file_which_should_not_exist
29 +@set
-- $(TARGET
) && set
-ae
&& MAKE
="$(MAKE)" && . .
/Makefile.sh
&& $(MAKE
) $${GNO_PD_OPT} -e
-f Makefile.mak
$(TARGET
)
31 __any_target__
$(TARGETS
): __file_which_should_not_exist
32 +@set
-- "$@" && set
-ae
&& MAKE
="$(MAKE)" && . .
/Makefile.sh
&& $(MAKE
) $${GNO_PD_OPT} -e
-f Makefile.mak
"$@"
34 # Very important rule to avoid "accidents" caused by Makefile.sh's existence
35 # Some ridiculous "make" implementations will always implicitly "make Makefile"
36 # even though .POSIX: has been specified and that's definitely NOT POSIX!
42 # Clean out the standard six single suffix inference rules
44 .SUFFIXES
: .c .sh .f .c˜ .sh˜ .f˜
53 # This "phony" target must have at least one command otherwise it will not
54 # actually run anything and so will not actually trigger the rules that depend
55 # on it to run either. By using "true" instead of ":" "makes" that
56 # short-circuit directly to execvp should be able to run "true" directly.
57 __file_which_should_not_exist
: