Browse Source

build: Added all_platforms target to toplevel Makefile

The src level all_platforms target now also checks for locm3 existence
as well as triggers build of the needed locm3 libraries.
pull/1032/head
Piotr Esden-Tempski 2 years ago
committed by Rachel Mant
parent
commit
f97047b5f5
  1. 5
      Makefile
  2. 6
      src/Makefile

5
Makefile

@ -21,9 +21,14 @@ ifndef NO_LIBOPENCM3
endif
$(Q)$(MAKE) $(MFLAGS) -C src
all_platforms:
$(Q)$(MAKE) $(MFLAGS) -C src $@
clean:
ifndef NO_LIBOPENCM3
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 $@
endif
$(Q)$(MAKE) $(MFLAGS) -C src $@
.PHONY: clean all_platforms

6
src/Makefile

@ -136,6 +136,12 @@ clean: host_clean
-$(Q)$(RM) platforms/*/*.o platforms/*/*.d mapfile include/version.h
all_platforms:
$(Q)if [ ! -f ../libopencm3/Makefile ]; then \
echo "Initialising git submodules..." ;\
git submodule init ;\
git submodule update ;\
fi
$(Q)$(MAKE) $(MFLAGS) -C ../libopencm3 lib/stm32/f1 lib/stm32/f4 lib/lm4f
$(Q)set -e ;\
mkdir -p artifacts/$(shell git describe --always --dirty --tags) ;\
echo "<html><body><ul>" > artifacts/index.html ;\

Loading…
Cancel
Save