37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
|
--- Makefile.orig 2015-05-12 09:32:01.346321752 +0200
|
||
|
+++ Makefile 2015-05-12 09:33:29.063315187 +0200
|
||
|
@@ -43,7 +43,7 @@
|
||
|
LDFLAGS_LIB = $(LDFLAGS) -shared
|
||
|
|
||
|
INSTALL ?= install
|
||
|
-PREFIX ?= $(DESTDIR)/usr/local
|
||
|
+PREFIX ?= /usr/local
|
||
|
LIBDIR = $(PREFIX)/lib
|
||
|
INCLUDEDIR = $(PREFIX)/include
|
||
|
|
||
|
@@ -112,18 +112,18 @@
|
||
|
|
||
|
install: library
|
||
|
$(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
|
||
|
- $(INSTALL) -D $(SONAME) $(LIBDIR)/$(SONAME)
|
||
|
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
|
||
|
+ $(INSTALL) -D $(SONAME) $(DESTDIR)/$(LIBDIR)/$(SONAME)
|
||
|
+ ln -s $(DESTDIR)/$(LIBDIR)/$(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
|
||
|
|
||
|
install-strip: library
|
||
|
$(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
|
||
|
- $(INSTALL) -D -s $(SONAME) $(LIBDIR)/$(SONAME)
|
||
|
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
|
||
|
+ $(INSTALL) -D -s $(SONAME) $(DESTDIR)/$(LIBDIR)/$(SONAME)
|
||
|
+ ln -s $(DESTDIR)/$(LIBDIR)/$(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
|
||
|
|
||
|
uninstall:
|
||
|
rm $(INCLUDEDIR)/http_parser.h
|
||
|
- rm $(LIBDIR)/$(SONAME)
|
||
|
- rm $(LIBDIR)/libhttp_parser.so
|
||
|
+ rm $(DESTDIR)/$(LIBDIR)/$(SONAME)
|
||
|
+ rm $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
|
||
|
|
||
|
clean:
|
||
|
rm -f *.o *.a tags test test_fast test_g \
|