Makefile: add install target
This commit is contained in:
parent
0e75740630
commit
8b6291b6ca
10
Makefile
10
Makefile
@ -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
|
$(CC) adhocify.c -g -std=c99 -Wall -Wextra -pedantic -o adhocify
|
||||||
|
|
||||||
|
install: adhocify
|
||||||
|
install -D adhocify $(DESTDIR)$(bindir)/adhocify
|
||||||
|
|
||||||
|
.PHONY: install
|
||||||
|
Loading…
Reference in New Issue
Block a user