Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Palsson <karlp@tweak.net.au>2017-09-30 00:31:31 +0300
committerKarl Palsson <karlp@tweak.net.au>2017-10-18 23:08:51 +0300
commitbf882caf4dde191c46fed89873fbbce2def587c6 (patch)
tree97745df04c2e74571c75380aabd6fdb4133ae4da /Makefile
parentc6743f9ecdb816c5c907111a3a20fd430c70fdb1 (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--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ea51f6d9..0527e3e2 100644
--- a/Makefile
+++ b/Makefile
@@ -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