hacks/Makefile

16 lines
282 B
Makefile
Raw Permalink Normal View History

2016-07-03 21:02:11 +02:00
MAKEFILES = $(wildcard */Makefile)
SUBDIRS = $(MAKEFILES:%/Makefile=%)
2016-07-03 21:15:14 +02:00
all: build check
build: $(SUBDIRS:%=build-%)
check: $(SUBDIRS:%=check-%)
2016-07-03 21:02:11 +02:00
build-%:
$(MAKE) -C $*
2016-07-03 21:15:14 +02:00
check-%:
! grep ^test: $*/Makefile || $(MAKE) -C $* test
2016-07-03 21:19:43 +02:00
! grep ^check: $*/Makefile || $(MAKE) -C $* check