]> rtime.felk.cvut.cz Git - jenkicar/rpp-simulink.git/commitdiff
doc/Makefile: Do not configure test-sw if already done.
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 25 Aug 2015 21:39:02 +0000 (23:39 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 26 Aug 2015 21:27:19 +0000 (23:27 +0200)
I have both lib directories bind-mounted to the same directory. Without
this change, I was not able to compile documentation, because cp complained
about copying file to itself.

doc/Makefile

index d2916902c3c8e951256ad30569b20e3c0949a993..9a483fba1b2ea60901741617f4c18dac9f0db023 100644 (file)
@@ -41,4 +41,4 @@ version.tex:
        if cmp $@ $@.tmp; then rm $@.tmp; else mv $@.tmp $@; fi
 
 configure-test-sw:
-       cp ../rpp/lib/Makefile.config test-sw/rpp-lib
+       if ! cmp ../rpp/lib/Makefile.config test-sw/rpp-lib/Makefile.config; then cp ../rpp/lib/Makefile.config test-sw/rpp-lib; fi