Skip to content

Commit

Permalink
Updated make file to use DESTDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Pressnall committed Aug 20, 2014
1 parent 2a0fb08 commit 5d74107
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
CC=gcc
PROGS=snebu
SCRIPTS=snebu-client
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
all: $(PROGS)
snebu: snebu.c
$(CC) $< -o $@ -l sqlite3 -l crypto -l lzo2 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -O3
install: $(PROGS)
cp -p $(PROGS) $(SCRIPTS) /usr/local/bin/
install: $(PROGS) $(SCRIPTS)
mkdir -p $(DESTDIR)$(BINDIR)
cp -f $(PROGS) $(SCRIPTS) $(DESTDIR)$(BINDIR)/
clean:
rm -f $(PROGS)

0 comments on commit 5d74107

Please sign in to comment.