Skip to content

Commit

Permalink
Makefile correction
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikLetson committed Sep 6, 2019
1 parent a3403db commit 1cec680
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ CFLAGS=-I.
SRC=$(wildcard *.c)
OBJ=$(SRC:.c=.o)

PREFIX=/usr/bin

%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)

Expand All @@ -16,7 +18,7 @@ clean:
.PHONY: install
install: ebuildexample
mkdir -p $(DESTDIR)
cp $< $(DESTDIR)/ebuildexample
cp $< $(DESTDIR)$(PREFIX)/ebuildexample

.PHONY: uninstall
uninstall:
Expand Down

0 comments on commit 1cec680

Please sign in to comment.