Build icons for distribution.
[dhcpcd-ui] / Makefile
index 51768e3b9a1f0535452b8bd9b8cb681eb94776de..8a5824455e9caabde4cefb9c4a8c75f45e3b6117 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,24 +1,13 @@
-# Makefile based on BSD make.
-# Our mk stubs also work with GNU make.
-# Copyright 2008 Roy Marples <roy@marples.name>
+PROG=          dhcpcd-ui
+VERSION=       0.4.2
 
-PROG=          dhcpcd-gtk
-SRCS=          main.c menu.c dhcpcd-config.c prefs.c wpa.c
+.PHONY:                icons
 
-SYSCONFDIR?=   ${PREFIX}/etc/xdg/autostart
-FILESDIR?=     ${SYSCONFDIR}
-FILES=         dhcpcd-gtk.desktop
+SUBDIR=                src icons
 
-_PKGCFLAGS_SH= pkg-config --cflags dbus-glib-1 gtk+-2.0 libnotify
-_PKGCFLAGS!=   ${_PKGCFLAGS_SH}
-PKGCFLAGS?=    ${_PKGCFLAGS}$(shell ${_PKGCFLAGS_SH})
-CFLAGS+=       ${PKGCFLAGS}
+MK=    mk
+include ${MK}/subdir.mk
+include ${MK}/dist.mk
 
-_PKGLIBS_SH=   pkg-config --libs dbus-glib-1 gtk+-2.0 libnotify
-_PKGLIBS!=     ${_PKGLIBS_SH}
-PKGLIBS?=      ${_PKGLIBS}$(shell ${_PKGLIBS_SH})
-LDADD+=                ${PKGLIBS}
-
-MK=            mk
-include ${MK}/sys.mk
-include ${MK}/prog.mk
+icons:
+       ${MAKE} -C icons