mirror of
https://github.com/arp242/find-cursor
synced 2024-11-01 03:20:37 +00:00
13 lines
415 B
Makefile
13 lines
415 B
Makefile
CC?=cc
|
|
CFLAGS?=-std=c99 -pedantic -Wall -Os
|
|
PREFIX?=/usr/local
|
|
MANPREFIX?=$(PREFIX)/share/man
|
|
|
|
all:
|
|
${CC} ${CFLAGS} ${LDFLAGS} -o find-cursor find-cursor.c -lX11 -lXext -lXfixes
|
|
|
|
install:
|
|
install -Dm755 find-cursor $(DESTDIR)$(PREFIX)/bin/find-cursor
|
|
sed "s/VERSION/`git tag | tail -1 | tr -d v`/g" < find-cursor.1 > $(DESTDIR)$(MANPREFIX)/man1/find-cursor.1
|
|
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/find-cursor.1
|