]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/app/app.pro
generate default database instead of using binary one
[toast/confclerk.git] / src / app / app.pro
index 64d608c94f4f29f0c2cffb6929c463ca2d935394..997ab81c5ad30bdb5371acaa29c4d6c30f70f5bf 100644 (file)
@@ -27,10 +27,18 @@ SOURCES += main.cpp \
     alarmdbus.cpp \
        alarmdbusadaptor.cpp
 
+# qmake cannot work properly if the resource file does not exist already
+system(rm -f ../fosdem.sqlite && sqlite3 ../fosdem.sqlite <../fosdem.sql)
+
 RESOURCES += ../icons.qrc \
              ../maps.qrc \
              ../db.qrc
 
+db.target = ../fosdem.sqlite
+db.depends = ../fosdem.sql
+db.commands = rm -f $$db.target && sqlite3 $$db.target <$$db.depends
+QMAKE_EXTRA_TARGETS += db
+
 # instalation related
 
 PREFIX = /usr/bin