mirror of
https://github.com/satoshinm/pill_6502.git
synced 2024-12-27 17:29:19 +00:00
19 lines
355 B
Makefile
19 lines
355 B
Makefile
|
ifneq ($(V), 1)
|
||
|
MFLAGS += --no-print-dir
|
||
|
Q := @
|
||
|
endif
|
||
|
|
||
|
all:
|
||
|
$(Q)if [ ! -f libopencm3/Makefile ]; then \
|
||
|
echo "Initialising git submodules..." ;\
|
||
|
git submodule init ;\
|
||
|
git submodule update ;\
|
||
|
fi
|
||
|
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 lib
|
||
|
$(Q)$(MAKE) $(MFLAGS) -C src
|
||
|
|
||
|
clean:
|
||
|
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 $@
|
||
|
$(Q)$(MAKE) $(MFLAGS) -C src $@
|
||
|
|