Skip to content

Commit

Permalink
Merge pull request #15 from DomT4/makefile
Browse files Browse the repository at this point in the history
Makefile: tweaks
  • Loading branch information
kerma authored Feb 14, 2018
2 parents a15228c + 360e46d commit dba87e7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
BIN ?= defaultbrowser
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin

CC = gcc
CFLAGS = -O2
Expand All @@ -9,11 +10,12 @@ CFLAGS = -O2
all:
gcc -o $(BIN) $(CFLAGS) -framework Foundation -framework ApplicationServices src/main.m

install:
cp $(BIN) $(PREFIX)/bin/
install: all
install -d $(BINDIR)
install -m 755 $(BIN) $(BINDIR)

uninstall:
rm -f $(PREFIX)/bin/$(BIN)
rm -f $(BINDIR)/$(BIN)

clean:
rm -f $(BIN)

0 comments on commit dba87e7

Please sign in to comment.