am_sysinfo: Create and remove Debug and Release directory
[apps/am_sysinfo.git] / Makefile
1 -include DIRS
2 -include ../../Rules.make
4 all: debug release
6 debug:
7         for dir in $(DIRS); do \
8                 make -C $$dir debug; \
9         done
11 release:
12         for dir in $(DIRS); do \
13                 make -C $$dir release; \
14         done
16 clean:
17         for dir in $(DIRS); do \
18                 make -C $$dir clean; \
19         done
21 install:
22         @install -d $(DESTDIR)/usr/bin
23         @if [ -e mem_util/Release/mem_util.elf ] ; then \
24                 install mem_util/Release/mem_util.elf $(DESTDIR)/usr/bin/mem_util ; \
25                 echo "mem_util release version installed."; \
26         else \
27                 echo "mem_util release version not built - nothing to install!"; \
28         fi
30 install_debug:
31         @install -d $(DESTDIR)/usr/bin
32         @if [ -e mem_util/Debug/mem_util.elf ] ; then \
33                 install mem_util/Debug/mem_util.elf $(DESTDIR)/usr/bin/mem_util ; \
34                 echo "mem_util debug version installed."; \
35         else \
36                 echo "mem_util debug version not built - nothing to install!"; \
37         fi