diff options
author | Karl Palsson <karlp@tweak.net.au> | 2017-09-30 00:31:31 +0300 |
---|---|---|
committer | Karl Palsson <karlp@tweak.net.au> | 2017-10-18 23:08:51 +0300 |
commit | bf882caf4dde191c46fed89873fbbce2def587c6 (patch) | |
tree | 97745df04c2e74571c75380aabd6fdb4133ae4da /Makefile | |
parent | c6743f9ecdb816c5c907111a3a20fd430c70fdb1 (diff) |
make: avoid shell find for windows compatibility
Instead of expecting a posix-ish "find" in the shell, simply leverage
our knowledge of our source structure to make a single list using make's
builtin wildcard() functionality.
Fixes https://github.com/libopencm3/libopencm3/issues/828
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -43,8 +43,12 @@ Q := @ MAKEFLAGS += --no-print-directory endif -IRQ_DEFN_FILES := $(shell find . -name 'irq.json') -STYLECHECKFILES := $(shell find . -name '*.[ch]') +# Avoid the use of shell find, for windows compatibility +IRQ_DEFN_FILES := $(wildcard include/libopencm3/*/irq.json) +IRQ_DEFN_FILES += $(wildcard include/libopencm3/*/*/irq.json) +STYLECHECKFILES := $(wildcard include/*/*.h include/*/*/*.h include/*/*/*/*.h) +STYLECHECKFILES += $(wildcard lib/*/*.h lib/*/*/*.h lib/*/*/*/*.h) +STYLECHECKFILES += $(wildcard lib/*/*.c lib/*/*/*.c lib/*/*/*/*.c) all: build |