Skip to content

Commit

Permalink
Merge pull request #29 from cicku/patch-1
Browse files Browse the repository at this point in the history
Merged. Thanks !
  • Loading branch information
Xfennec committed Sep 1, 2014
2 parents ba51282 + a09df1e commit b6c230b
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
OBJ=cv
CFLAGS+=-g -Wall -D_FILE_OFFSET_BITS=64
LFLAGS=-lncurses -lm
PREFIX = $(DESTDIR)/usr/local
OBJ = cv
override CFLAGS += -g -Wall -D_FILE_OFFSET_BITS=64
override LFLAGS += -lncurses -lm
PREFIX ?= /usr/local
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man/man1

$(OBJ) : cv.o sizes.o hlist.o
$(CC) -Wall $^ -o $@ $(LFLAGS)
Expand All @@ -11,7 +12,11 @@ $(OBJ) : cv.o sizes.o hlist.o
clean :
rm -f *.o $(OBJ)
install : $(OBJ)
@echo "Installing to $(BINDIR) ..."
@mkdir -p $(BINDIR)
@install -m 0755 $(OBJ) $(BINDIR)/$(TARGET) || \
@echo "Installing program to $(DESTDIR)$(BINDIR) ..."
@mkdir -p $(DESTDIR)$(BINDIR)
@install -pm0755 $(OBJ) $(DESTDIR)$(BINDIR)/$(TARGET) || \
echo "Failed. Try "make PREFIX=~ install" ?"
@echo "Installing manpage to $(DESTDIR)$(MANDIR) ..."
@mkdir -p $(DESTDIR)$(MANDIR)
@install -pm0644 cv.1 $(DESTDIR)$(MANDIR)/ || \
echo "Failed. Try "make PREFIX=~ install" ?"

0 comments on commit b6c230b

Please sign in to comment.