]> rtime.felk.cvut.cz Git - pes-rpp/rpp-simulink.git/blobdiff - doc/Makefile
doc: Build documentation only with block that are part of the release
[pes-rpp/rpp-simulink.git] / doc / Makefile
index 9a483fba1b2ea60901741617f4c18dac9f0db023..48750797ea0fd2851e922ab82690f3a8efe96095 100644 (file)
@@ -14,7 +14,7 @@ rpp_simulink.pdf: rpp_simulink.tex
 
 rpp_simulink.tex: block_desc.tex block_table.tex rpp-test-sw-cmds.tex version.tex _$(TARGET)/target_def.tex _$(TARGET)/hwdesc.tex
 
-blocks = $(sort $(wildcard ../rpp/blocks/sfunction_*.c))
+blocks = $(sort $(shell $(if $(RELEASE_ATTR),../rpp/lib/etc/git-ls-files-attr $(RELEASE_ATTR),git ls-files) ../rpp/blocks/sfunction_*.c))
 
 block_desc.tex: ../rpp/blocks/scripts/doc_parse.py $(blocks)
        $< --latex ${filter %.c,$^} | sed -e 's/\\bf\b/\\bfseries/g' > $@