automate copyright file correction
authorKonrad Rosenbaum <konrad@silmor.de>
Mon, 19 May 2014 20:01:43 +0000 (22:01 +0200)
committerKonrad Rosenbaum <konrad@silmor.de>
Mon, 19 May 2014 20:01:43 +0000 (22:01 +0200)
copygen/copygen.pro
copygen/dummy.cpp [new file with mode: 0644]
copygen/version.pro
skid.pro

index 8b8a466..d5b4c05 100644 (file)
@@ -1,7 +1,7 @@
 TARGET = copygen
-DESTDIR = $$PWD
+DESTDIR = $$OUT_PWD
 QT -= gui
-CONFIG += c++11
+CONFIG += c++11 release
 
 SOURCES += cgmain.cpp
-RESOURCES += cgfile.qrc
\ No newline at end of file
+RESOURCES += cgfile.qrc
diff --git a/copygen/dummy.cpp b/copygen/dummy.cpp
new file mode 100644 (file)
index 0000000..8724630
--- /dev/null
@@ -0,0 +1,3 @@
+#include "../version.h"
+
+int main(int,char**){}
\ No newline at end of file
index a60585f..3a114cc 100644 (file)
@@ -1 +1,28 @@
-TEMPLATE = subdirs
\ No newline at end of file
+TARGET = copygen_dummy
+DESTDIR = $$OUT_PWD
+QT -= gui
+CONFIG += c++11 release
+
+SOURCES += dummy.cpp
+HEADERS += $$PWD/../version.h
+
+QMAKE_EXTRA_TARGETS += version_h readme license_html
+
+version_h.target = $$PWD/../version.h
+version_h.commands = $$OUT_PWD/copygen header $$version_h.target $$GITPARA
+version_h.depends += FORCE
+
+readme.target = $$PWD/../README
+readme.commands = $$OUT_PWD/copygen readme $$readme.target $$GITPARA
+readme.CONFIG = no_link
+readme.depends += FORCE
+
+license_html.target = $$PWD/../doc/license.html
+license_html.commands = $$OUT_PWD/copygen html $$license_html.target $$GITPARA
+license_html.CONFIG = no_link
+license_html.depends += FORCE
+
+PRE_TARGETDEPS += \
+        $$version_h.target \
+        $$readme.target \
+        $$license_html.target
index 8d6fa27..2fdd97b 100644 (file)
--- a/skid.pro
+++ b/skid.pro
@@ -12,15 +12,15 @@ runnerqt5.file = runnerlib/qt5/runnerqt5.pro
 runnerqt5.depends = copygen version
 
 qt-simple.subdir = examples/qt-simple
-qt-simple.depends = runnerqt5 version
+qt-simple.depends = runnerqt5 copygen version
 
 qt-distrib.subdir = examples/qt-distrib
-qt-distrib.depends = runnerqt5 version
+qt-distrib.depends = runnerqt5 copygen version
 
 sit.file = examples/system-in-test/sit.pro
-sit.depends = version
+sit.depends = copygen version
 
 copygen.file = copygen/copygen.pro
 
+version.depends = copygen
 version.file = copygen/version.pro
-version.depends = copygen
\ No newline at end of file