We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7cdd17 + 74700b2 commit 962fd25Copy full SHA for 962fd25
Makefile
@@ -1,5 +1,7 @@
1
LIBTOOL ?= libtool
2
-LIBDIR ?= /usr/lib
+PREFIX ?= /usr
3
+INCLUDEDIR ?= ${PREFIX}/include/pystring
4
+LIBDIR ?= ${PREFIX}/lib
5
CXX ?= g++
6
CXXFLAGS ?= -g -O3 -Wall -Wextra -Wshadow -Wconversion -Wcast-qual -Wformat=2
7
@@ -12,7 +14,8 @@ libpystring.la: pystring.lo
12
14
$(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $< -rpath $(LIBDIR)
13
15
16
install: libpystring.la
- $(LIBTOOL) --mode=install install -c $< $(LIBDIR)/$<
17
+ $(LIBTOOL) --mode=install install -Dm755 $< $(DESTDIR)$(LIBDIR)/$<
18
+ $(LIBTOOL) --mode=install install -Dm644 pystring.h $(DESTDIR)$(INCLUDEDIR)/pystring.h
19
20
clean:
21
$(RM) -fr pystring.lo pystring.o libpystring.la .libs
0 commit comments