Browse Source

Makefile: add install target

tags/v1.0^0
Albert S. 1 month ago
parent
commit
1287532f48
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      Makefile

+ 6
- 3
Makefile View File

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

release:
$(CC) adhocify.c $(CFLAGS) -o adhocify

install: adhocify
install: release
install -D adhocify $(DESTDIR)$(bindir)/adhocify

.PHONY: install

Loading…
Cancel
Save