Makefile: add install target
This commit is contained in:
parent
1bf61c0ded
commit
1287532f48
9
Makefile
9
Makefile
@ -1,10 +1,13 @@
|
|||||||
prefix = /usr/local
|
prefix = /usr/local
|
||||||
bindir = $(prefix)/bin
|
bindir = $(prefix)/bin
|
||||||
|
CFLAGS = -std=c99 -Wall -Wextra -pedantic
|
||||||
all:
|
all:
|
||||||
$(CC) adhocify.c -g -std=c99 -Wall -Wextra -pedantic -o adhocify
|
$(CC) adhocify.c -g $(CFLAGS) -o adhocify
|
||||||
|
|
||||||
install: adhocify
|
release:
|
||||||
|
$(CC) adhocify.c $(CFLAGS) -o adhocify
|
||||||
|
|
||||||
|
install: release
|
||||||
install -D adhocify $(DESTDIR)$(bindir)/adhocify
|
install -D adhocify $(DESTDIR)$(bindir)/adhocify
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
|
Loading…
Reference in New Issue
Block a user