| --- pystring-1.1.3/Makefile.orig 2019-07-30 20:39:11.924525000 +0300 |
| +++ pystring-1.1.3/Makefile 2019-07-30 20:39:17.322134500 +0300 |
| @@ -1,7 +1,9 @@ |
| -LIBTOOL = libtool |
| -LIBDIR = /usr/lib |
| -CXX = g++ |
| -CXXFLAGS = -g -O3 -Wall -Wextra -Wshadow -Wconversion -Wcast-qual -Wformat=2 |
| +LIBTOOL ?= libtool |
| +PREFIX ?= /usr |
| +INCLUDEDIR = ${PREFIX}/include/pystring |
| +LIBDIR = ${PREFIX}/lib |
| +CXX ?= g++ |
| +CXXFLAGS ?= -g -O3 -Wall -Wextra -Wshadow -Wconversion -Wcast-qual -Wformat=2 |
| |
| all: libpystring.la |
| |
| @@ -12,7 +14,8 @@ |
| $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $< -rpath $(LIBDIR) |
| |
| install: libpystring.la |
| - $(LIBTOOL) --mode=install install -c $< $(LIBDIR)/$< |
| + $(LIBTOOL) --mode=install install -c $< $(DESTDIR)$(LIBDIR)/$< |
| + $(LIBTOOL) --mode=install install -c pystring.h $(DESTDIR)$(INCLUDEDIR)/pystring.h |
| |
| clean: |
| $(RM) -fr pystring.lo pystring.o libpystring.la .libs |