fdcreate/Makefile
psykose 1d084da21b
feat: improve makefile
- remove compile rule (implicit)
- no dependency tracking for install/check
2022-08-12 00:27:56 +02:00

20 lines
356 B
Makefile

CC?=gcc
CFLAGS+=-D_GNU_SOURCE
LDLIBS+=-lskarnet
PREFIX?=/usr
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man
all: fdcreate
clean:
@rm -f fdcreate fdcreate.o
check:
./fdcreate test [ -f /proc/self/fd/3 ]
install:
install -Dm755 fdcreate -t $(DESTDIR)$(BINDIR)
install -Dm644 fdcreate.1 -t $(DESTDIR)$(MANDIR)/man1
.PHONY := install check clean all