* make all now makes examples too

This commit is contained in:
Vovanium 2024-01-18 16:50:48 +03:00
parent 4070bd2110
commit b6d3df1c28
1 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
.PHONY: all clean test
.PHONY: all clean library examples test
TARGET = \
embedded_stm32f4 \
@ -9,7 +9,9 @@ TARGET = \
LIBRARY_TARGET = $(TARGET:%=%_library)
all: $(LIBRARY_TARGET)
all: library examples
library: $(LIBRARY_TARGET)
$(LIBRARY_TARGET):
gprbuild $@.gpr
@ -19,6 +21,9 @@ clean: $(LIBRARY_TARGET:%=%-clean)
%-clean:
gprclean $*.gpr
examples:
cd examples; make all
test:
echo $(TARGET)
echo $(LIBRARY_TARGET)