File: Makefile

package info (click to toggle)
kpatch 0.9.11-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,796 kB
  • sloc: ansic: 9,950; sh: 2,677; makefile: 260; asm: 35
file content (17 lines) | stat: -rw-r--r-- 483 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ARCHES ?= aarch64 ppc64le x86_64

.PHONY: all clean submodule-check

all: $(addsuffix -test,$(ARCHES))
clean: $(addsuffix -clean,$(ARCHES))

submodule-check:
	@cd $(shell git rev-parse --show-toplevel) && \
		git diff-index --quiet HEAD test/unit/objs || \
		echo -e "\nWARNING: unit tests are out of date - run \"git submodule update\"\n"

%-test: Makefile.include submodule-check
	$(MAKE) -C objs/$*

%-clean: Makefile.include
	if [ -d objs/$* ]; then $(MAKE) -C objs/$* clean; fi