Roy's Projects
/
dhcpcd-ui
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Install our autostart files into /etc/xdg/autostart
[dhcpcd-ui]
/
src
/
dhcpcd-gtk
/
Makefile
diff --git
a/src/dhcpcd-gtk/Makefile
b/src/dhcpcd-gtk/Makefile
index 55781dd38f6e860e72434292b475f89884c4a0a0..3652970a094b3acb713229244de0d0052eb375f2 100644
(file)
--- a/
src/dhcpcd-gtk/Makefile
+++ b/
src/dhcpcd-gtk/Makefile
@@
-1,30
+1,27
@@
-# Makefile based on BSD make.
-# Our mk stubs also work with GNU make.
-# Copyright 2008 Roy Marples <roy@marples.name>
-
PROG= dhcpcd-gtk
SRCS= main.c menu.c prefs.c wpa.c
PROG= dhcpcd-gtk
SRCS= main.c menu.c prefs.c wpa.c
+TOPDIR= ../..
+include ${TOPDIR}/iconfig.mk
+
ICONDIR?= ${PREFIX}/share/dhcpcd/icons
ICONDIR?= ${PREFIX}/share/dhcpcd/icons
-SYSCONFDIR?= ${PREFIX}/etc/xdg/autostart
-FILESDIR?= ${SYSCONFDIR}
+APPDIR?= ${PREFIX}/share/applications
+AUTOSTARTDIR?= ${SYSCONFDIR}/xdg/autostart
+FILESDIR= ${APPDIR}
FILES= dhcpcd-gtk.desktop
FILES= dhcpcd-gtk.desktop
+FILESDIR2= ${AUTOSTARTDIR}
+FILES2= dhcpcd-gtk.desktop
+MAN8= dhcpcd-gtk.8
-include ../libdhcpcd/Makefile.inc
+CPPFLAGS+= ${NOTIFY} -I${TOPDIR}
-C
PPFLAGS+= -DICONDIR=\"${ICONDIR}\"
-CPPFLAGS+= -DNOTIFY
+C
FLAGS+= ${GTK_CFLAGS}
+LDADD+= ${LIB_DHCPCD} ${GTK_LIBS}
-_PKGCFLAGS_SH= pkg-config --cflags gtk+-2.0 libnotify
-_PKGCFLAGS!= ${_PKGCFLAGS_SH}
-PKGCFLAGS?= ${_PKGCFLAGS}$(shell ${_PKGCFLAGS_SH})
-CFLAGS+= ${PKGCFLAGS}
+.PHONY: dhcpcd-gtk
-_PKGLIBS_SH= pkg-config --libs gtk+-2.0 libnotify
-_PKGLIBS!= ${_PKGLIBS_SH}
-PKGLIBS?= ${_PKGLIBS}$(shell ${_PKGLIBS_SH})
-LDADD+= ${PKGLIBS}
+include ../libdhcpcd/Makefile.inc
-MK= ../../mk
-include ${MK
}/sys
.mk
-include ${MK
}/prog
.mk
+FILESINSTALL= _filesinstall
+include ${MK
DIR}/prog
.mk
+include ${MK
DIR}/files
.mk