logo

xcursorgen-nox

xcursorgen(1) without libX11/libXcursor dependency
commit: eba2e9080b3f9e1f963e2b772be2bc06a6b01b4f
parent 990ab0f3cf004360d54589a6ee07465125d3245d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 20 Oct 2023 07:15:28 +0200

Makefile: Add install target

Diffstat:

MMakefile8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -4,6 +4,9 @@ CC ?= cc CFLAGS ?= -O2 -g -Wall -Wextra +PREFIX ?= /usr +BINDIR ?= ${PREFIX}/bin + PKG_CONFIG ?= pkg-config PNG_CFLAGS = `${PKG_CONFIG} --cflags libpng` @@ -18,6 +21,11 @@ XCURSORGEN_SRC = xcursorgen.c Xcursor/file.o xcursorgen: ${XCURSORGEN_SRC} | *.h Xcursor/*.h ${CC} -std=c99 ${CFLAGS} ${PNG_CFLAGS} -o $@ ${XCURSORGEN_SRC} ${LDFLAGS} ${PNG_LIBS} +.PHONY: install +install: all + mkdir -p ${DESTDIR}${BINDIR} + cp -p xcursorgen ${DESTDIR}${BINDIR}/ + SOURCES = *.c *.h Xcursor/*.h Xcursor/*.c .PHONY: format format: