Don't install autostart files.
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-qt.pro
index 171a6ec2f5af1b6cadd51c86dbad32d793f80b96..f38d7952a8aadfd0a527d9f6122813bcf4bc0ed3 100644 (file)
@@ -2,10 +2,12 @@ CONFIG+=              qt gui c++11 debug
 QMAKE_CXXFLAGS+=       -std=c++11 -O2
 
 HEADERS=               dhcpcd-qt.h dhcpcd-about.h dhcpcd-preferences.h \
-                       dhcpcd-wi.h dhcpcd-ifmenu.h dhcpcd-ssidmenu.h
+                       dhcpcd-wi.h dhcpcd-ifmenu.h dhcpcd-ssidmenu.h \
+                       dhcpcd-ipv4validator.h
 SOURCES=               main.cpp dhcpcd-qt.cpp dhcpcd-about.cpp \
                        dhcpcd-preferences.cpp dhcpcd-wi.cpp \
-                       dhcpcd-ifmenu.cpp dhcpcd-ssidmenu.cpp
+                       dhcpcd-ifmenu.cpp dhcpcd-ssidmenu.cpp \
+                       dhcpcd-ipv4validator.cpp
 
 INCLUDEPATH+=          ../../
 INCLUDEPATH+=          ../libdhcpcd/
@@ -16,4 +18,33 @@ has_libintl {
        LIBS +=         -lintl
 }
 
+has_libkdeui {
+       LIBS+=          -lkdeui
+       DEFINES+=       NOTIFY
+       INSTALLS+=      notifyrc
+}
+
 QMAKE_CLEAN+=          ${TARGET}
+
+isEmpty(PREFIX) {
+       PREFIX=         /usr/local
+}
+isEmpty(SYSCONFDIR) {
+       SYSCONFDIR=     $$PREFIX/etc
+}
+isEmpty(MANDIR) {
+       MANDIR=         $$PREFIX/share/man
+}
+
+target.path=           $$PREFIX/bin
+
+man8.path=             $$MANDIR/man8
+man8.files=            dhcpcd-qt.8
+
+desktop.path=          $$PREFIX/share/applications
+desktop.files=         dhcpcd-qt.desktop
+
+notifyrc.path=         $$PREFIX/share/apps/dhcpcd-qt
+notifyrc.files=                dhcpcd-qt.notifyrc
+
+INSTALLS+=             target man8 desktop