diff options
author | Skiz <skiznet@aol.com> | 2024-10-02 17:06:05 -0400 |
---|---|---|
committer | Skiz <skiznet@aol.com> | 2024-10-02 17:06:05 -0400 |
commit | 6bbaf8b3e9e6b7412f600dcdadc4883a8453b20c (patch) | |
tree | 523fea4c507b8d77790add0b25f2004f916f4e0b | |
parent | 375af8e228edd48c4a841943e782c427ebdedff3 (diff) |
Set up make install
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +PREFIX ?= /usr/local +BINDIR ?= $(PREFIX)/bin +TARGET = spwd + all: - clang -O3 -march=native -std=c99 -pedantic -o spwd src/spwd.c + cc -O3 -march=native -std=c99 -pedantic -o $(TARGET) src/spwd.c +install: + install -Dm755 $(TARGET) $(BINDIR)/$(TARGET) |