This repository has been archived on 2020-12-21. You can view files and clone it, but cannot push or open issues or pull requests.
nenu/Makefile

36 lines
656 B
Makefile

DESTDIR?=
PREFIX?=/usr
MANDIR?=${PREFIX}/share/man
all: nenu
nenu: nenu.c
gcc -o nenu nenu.c \
-lX11 \
-lXft \
-lXrender \
-lXinerama \
`pkg-config --cflags freetype2` \
`pkg-config --cflags fontconfig` \
`pkg-config --libs fontconfig` \
`pkg-config --libs freetype2`
.PHONY:
clean:
rm nenu
.PHONY:
install-nenu: nenu
install -Dm 755 nenu ${DESTDIR}${PREFIX}/bin/nenu
.PHONY:
install-scripts:
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f scripts/dmenufm scripts/dmenu_run \
$(DESTDIR)$(PREFIX)/bin
chmod 755 $(DESTDIR)$(PREFIX)/bin/dmenufm
chmod 755 $(DESTDIR)$(PREFIX)/bin/dmenu_run
.PHONY:
install: install-nenu install-scripts