Skip to content

Commit

Permalink
allow to override libdir and includedir
Browse files Browse the repository at this point in the history
  • Loading branch information
xant committed Sep 2, 2015
1 parent 7fbe942 commit 3f348b8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
infodir = $(prefix)/info
libdir = $(prefix)/lib
includedir = $(prefix)/include
libdir = @libdir@
includedir = @includedir@
mandir = $(prefix)/man/man1

CC = @CC@
Expand All @@ -31,14 +31,12 @@ SHAREDFLAGS = -shared
SHAREDEXT = so
endif

LIBDIR = $(libdir)
ifeq ("$(LIBDIR)", "")
LIBDIR=/usr/local/lib
LIBDIR = $(libdir)
endif

INCDIR = $(includedir)
ifeq ("$(INCDIR)", "")
INCDIR=/usr/local/include
INCDIR = $(includedir)
endif

IS_CLANG := $(shell $(CC) --version | grep clang)
Expand Down Expand Up @@ -123,7 +121,7 @@ install:
cp -v libhl.a $(LIBDIR)/;\
cp -v libhl.$(SHAREDEXT) $(LIBDIR)/;\
echo "Installing headers in $(INCDIR)"; \
cp -v src/*.h $(INCDIR)/;
cp -v $(top_srcdir)/src/*.h $(INCDIR)/;

.PHONY: docs
docs:
Expand Down

0 comments on commit 3f348b8

Please sign in to comment.