File: Test.mk

package info (click to toggle)
zmk 0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,132 kB
  • sloc: makefile: 1,749; sh: 313; ansic: 42; awk: 12; cpp: 12
file content (18 lines) | stat: -rw-r--r-- 592 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
include zmk/internalTest.mk

t:: check static-check

check: check.log
	# The check target depends on static-check
	GREP -qFx 'echo "target :check:"' <$<
	GREP -qFx 'echo "target :static-check:"' <$<

# internalTest.mk uses dashes to separate targets and
# cannot deduce a target that uses dashes itself.
# Provide the target explicitly with override.
static-check.log: ZMK.makeTarget=static-check
static-check: static-check.log
	# The static check target runs just the static checks. 
	GREP -qFx 'echo "target :static-check:"' <$<
	GREP -v -qFx 'echo "target :check:"' <$<