Makefile: add install target

This commit is contained in:
Albert S. 2020-08-07 23:16:44 +02:00
parent 0e75740630
commit 8b6291b6ca
1 changed files with 9 additions and 1 deletions

View File

@ -1,2 +1,10 @@
all: adhocify.c
prefix = /usr/local
bindir = $(prefix)/bin
all:
$(CC) adhocify.c -g -std=c99 -Wall -Wextra -pedantic -o adhocify
install: adhocify
install -D adhocify $(DESTDIR)$(bindir)/adhocify
.PHONY: install