README-TESTLIB-TG: fix typo
[topgit/pro.git] / t / Makefile
blobeba07c7aad871554d38599aeda288ae32e84bd27
1 # Makefile - POSIX Makefile for TopGit tests
2 # Copyright (C) 2017 Kyle J. McKay
3 # All rights reserved
4 # License GPL2
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)
12 .POSIX:
14 # Anything explicitly listed here will always avoid a bogus "up to date" result
15 TARGETS = \
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
20 #TARGETS
22 __default_target__: __file_which_should_not_exist
23 +@set -- && set -ae && MAKE="$(MAKE)" && . ./Makefile.sh && $(MAKE) $${GNO_PD_OPT} -e -f Makefile.mak
25 .DEFAULT:
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!
37 Makefile:
38 @true
40 .PRECIOUS:
42 # Clean out the standard six single suffix inference rules
43 .SUFFIXES:
44 .SUFFIXES: .c .sh .f .c˜ .sh˜ .f˜
45 .c:;
46 .f:;
47 .sh:;
48 .c~:;
49 .f~:;
50 .sh~:;
51 .SUFFIXES:
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:
58 -@true