mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-30 05:33:26 +01:00
b5ace27a3e
The astyle check is now done by restyled.
16 lines
779 B
Makefile
16 lines
779 B
Makefile
# Variables for desktop notifications support
|
|
DESK_NOTIFY_LIBS = libnotify
|
|
DESK_NOTIFY_CFLAGS = -DBOX_NOTIFY
|
|
|
|
# Check if we can build desktop notifications support
|
|
CHECK_DESK_NOTIFY_LIBS := $(shell $(PKG_CONFIG) --exists $(DESK_NOTIFY_LIBS) || echo -n "error")
|
|
ifneq ($(CHECK_DESK_NOTIFY_LIBS), error)
|
|
LIBS += $(DESK_NOTIFY_LIBS)
|
|
CFLAGS += $(DESK_NOTIFY_CFLAGS)
|
|
else ifneq ($(MAKECMDGOALS), clean)
|
|
MISSING_DESK_NOTIFY_LIBS := $(shell for lib in $(DESK_NOTIFY_LIBS) ; do if ! $(PKG_CONFIG) --exists $$lib ; then echo $$lib ; fi ; done)
|
|
$(warning WARNING -- Toxic will be compiled without desktop notifications support)
|
|
$(warning WARNING -- You need these libraries for desktop notifications support)
|
|
$(warning WARNING -- $(MISSING_DESK_NOTIFY_LIBS))
|
|
endif
|