diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-12-09 21:23:07 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-12-09 21:23:07 +0100 |
commit | f9fb0bcb723765d859bc97b41407f72ca584aa40 (patch) | |
tree | e845179be1d810265ef5d000b226ea5795a01571 /Makefile | |
parent | b90c3ef48c96c6359f0c815c4e9ce01adb2901df (diff) |
Add an install target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -5,11 +5,19 @@ WARNINGS = -Wall -Wextra -Werror -Wpedantic CC = cc CFLAGS = $(WARNINGS) -pipe -O3 -march=native -mtune=native +PREFIX = /usr/local +DPREFIX = $(DESTDIR)$(PREFIX) + all: grab grab: grab.c debug: $(CC) $(WARNINGS) -DGRAB_DEBUG -g -ggdb3 -o grab grab.c +install: + mkdir -p $(DPREFIX)/bin $(DPREFIX)/share/man/man1 + cp grab $(DPREFIX)/bin + cp grab.1 $(DPREFIX)/share/man/man1 + clean: rm -f grab |