From e4678e90f1b0f19d3748210075d46e0917f5a499 Mon Sep 17 00:00:00 2001 From: Bernd Wachter Date: Thu, 18 Sep 2014 17:59:11 +0300 Subject: [PATCH] Skip building Doxygen docs if .nodocs is present --- .gitignore | 1 + rpm/ssu.spec | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c5bf7a7..a3d254f 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ doc/latex /ssud/ssuadaptor.h /rndssucli/ssuproxy.cpp /rndssucli/ssuproxy.h +/.nodocs diff --git a/rpm/ssu.spec b/rpm/ssu.spec index 4da9015..9f86706 100644 --- a/rpm/ssu.spec +++ b/rpm/ssu.spec @@ -141,7 +141,11 @@ Group: Documentation mkdir -p build && cd build %qmake5 DEFINES+='TARGET_ARCH=\\\"\"%{_target_cpu}\"\\\"' -recursive .. make %{?_smp_mflags} -cd .. && doxygen doc/Doxyfile +if [ -f ../.nodocs ]; then + echo "Skip building documentation" +else + cd .. && doxygen doc/Doxyfile +fi %install