Simplify dunstify flags

This commit is contained in:
Benedikt Heine 2017-10-22 03:06:40 +02:00
parent 1cb60e0dd7
commit 37d76ab0d1
2 changed files with 6 additions and 1 deletions

View File

@ -78,6 +78,6 @@ test-clean:
rm -f test/test test/*.o
dunstify: dunstify.o
${CC} ${CFLAGS} -o $@ dunstify.o $(shell pkg-config --libs --cflags glib-2.0 libnotify gdk-3.0)
${CC} ${CFLAGS} -o $@ dunstify.o ${LDFLAGS}
.PHONY: all clean dist install uninstall

View File

@ -32,6 +32,11 @@ else
$(warning STATIC_CONFIG is deprecated behavior. It will get removed in future releases)
endif
# dunstify also needs libnotify
ifneq (,$(findstring dunstify,${MAKECMDGOALS}))
pkg_config_packs += libnotify
endif
# includes and libs
INCS := $(shell ${PKG_CONFIG} --cflags ${pkg_config_packs})
CFLAGS += ${INCS}