mirror of https://github.com/davatorium/rofi.git
Check dependencies
This commit is contained in:
parent
0996cf6e5f
commit
5d9a5c1c5d
14
Makefile
14
Makefile
|
@ -1,8 +1,20 @@
|
||||||
CFLAGS?=-Wall -Os
|
CFLAGS?=-Wall -Os
|
||||||
LDADD?=`pkg-config --cflags --libs x11 xinerama xft`
|
|
||||||
PREFIX?=$(DESTDIR)/usr
|
PREFIX?=$(DESTDIR)/usr
|
||||||
BINDIR?=$(PREFIX)/bin
|
BINDIR?=$(PREFIX)/bin
|
||||||
|
|
||||||
|
# Check deps.
|
||||||
|
|
||||||
|
PKG_CONFIG?=$(shell which pkg-config)
|
||||||
|
ifeq (${PKG_CONFIG},${EMPTY})
|
||||||
|
$(error Failed to find pkg-config. Please install pkg-config)
|
||||||
|
endif
|
||||||
|
|
||||||
|
LDADD?=$(shell ${PKG_CONFIG} --cflags --libs x11 xinerama xft)
|
||||||
|
|
||||||
|
ifeq (${LDADD},${EMPTY})
|
||||||
|
$(error Failed to find the required dependencies: x11, xinerama, xft)
|
||||||
|
endif
|
||||||
|
|
||||||
all: normal
|
all: normal
|
||||||
|
|
||||||
normal:
|
normal:
|
||||||
|
|
Loading…
Reference in New Issue