]> rtime.felk.cvut.cz Git - jenkicar/rpp-simulink.git/blob - Makefile
Add target configuration file to the release package
[jenkicar/rpp-simulink.git] / Makefile
1 RELEASE_PREFIX = rpp-simulink
2
3 include rpp/lib/common.mk
4
5 release: $(RELEASE_BASENAME).zip
6         $(MAKE) -C rpp/lib release
7         cp rpp/lib/rpp-lib-*.zip .
8         $(MAKE) -C doc/test-sw release
9         cp doc/test-sw/rpp-test-*.zip .
10         cp doc/rpp_simulink.pdf rpp_simulink-$(RELEASE_VERSION).pdf
11
12 $(RELEASE_BASENAME):: lib
13         mkdir -p $@/rpp/lib/rpp
14         mkdir -p $@/rpp/lib/os/7.0.2_tms570
15         mkdir -p $@/rpp/lib/lwip/src
16         cp --parents rpp/lib/rpp-lib.lib $@/
17         cp -r rpp/lib/rpp/include $@/rpp/lib/rpp/include
18         cp rpp/lib/rpp/TMS570LS313xFlashLnk.cmd $@/rpp/lib/rpp/TMS570LS313xFlashLnk.cmd
19         cp rpp/lib/rpp/TMS570LS3137.ccxml $@/rpp/lib/rpp/TMS570LS3137.ccxml
20         cp -r rpp/lib/os/7.0.2_tms570/include $@/rpp/lib/os/7.0.2_tms570/include
21         cp -r rpp/lib/lwip/src/include $@/rpp/lib/lwip/src/include
22         $(MAKE) -C doc
23         mkdir -p $@/doc
24         cp doc/rpp_simulink.pdf $@/doc
25
26 lib:
27         $(MAKE) -C rpp/lib/Release