-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (25 loc) · 797 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
SUBDIRS = $(wildcard demos/*_ats)
LIBMBED_LPC1768 = build/mbed/TARGET_LPC1768/TOOLCHAIN_GCC_ARM/libmbed.a
BUILDPY_FLAG = -m LPC1768 -t GCC_ARM
ODGS := $(wildcard draw/*.odg)
PNGS := $(patsubst %.odg,%.png,${ODGS})
all: $(LIBMBED_LPC1768)
@for i in $(SUBDIRS); do \
$(MAKE) -C $$i $@; \
done
$(LIBMBED_LPC1768):
python workspace_tools/build.py $(BUILDPY_FLAG) --rtos --eth --usb_host --usb
clean:
@for i in $(SUBDIRS); do \
$(MAKE) -C $$i $@; \
done
rm -rf build
%.png: %.odg
unoconv -n -f png -o [email protected] $< 2> /dev/null || \
unoconv -f png -o [email protected] $< || \
unoconv -n -f png -o [email protected] $< 2> /dev/null || \
unoconv -f png -o [email protected] $<
convert -resize 600x [email protected] $@
rm -f [email protected]
updatefig: $(PNGS)
.PHONY: all clean updatefig