Add KDE notification support.
[dhcpcd-ui] / src / dhcpcd-gtk / Makefile
index 56e16ea2f8a2eebd19c2a4c5528746b2abf2584f..3652970a094b3acb713229244de0d0052eb375f2 100644 (file)
@@ -2,12 +2,15 @@ PROG=         dhcpcd-gtk
 SRCS=          main.c menu.c prefs.c wpa.c
 
 TOPDIR=                ../..
-include ${TOPDIR}/config.mk
+include ${TOPDIR}/iconfig.mk
 
 ICONDIR?=      ${PREFIX}/share/dhcpcd/icons
-AUTOSTARTDIR?= ${PREFIX}/share/gnome/autostart
-FILESDIR=      ${AUTOSTARTDIR}
+APPDIR?=       ${PREFIX}/share/applications
+AUTOSTARTDIR?= ${SYSCONFDIR}/xdg/autostart
+FILESDIR=      ${APPDIR}
 FILES=         dhcpcd-gtk.desktop
+FILESDIR2=     ${AUTOSTARTDIR}
+FILES2=                dhcpcd-gtk.desktop
 MAN8=          dhcpcd-gtk.8
 
 CPPFLAGS+=     ${NOTIFY} -I${TOPDIR}
@@ -15,5 +18,10 @@ CPPFLAGS+=   ${NOTIFY} -I${TOPDIR}
 CFLAGS+=       ${GTK_CFLAGS}
 LDADD+=                ${LIB_DHCPCD} ${GTK_LIBS}
 
+.PHONY: dhcpcd-gtk
+
 include ../libdhcpcd/Makefile.inc
+
+FILESINSTALL=  _filesinstall
 include ${MKDIR}/prog.mk
+include ${MKDIR}/files.mk