41 lines
1.3 KiB
Diff
41 lines
1.3 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
|
|
|
|
@@ -111,19 +111,19 @@
|
|
ctags $^
|
|
|
|
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 http_parser.h $(DESTDIR)/$(INCLUDEDIR)/http_parser.h
|
|
+ $(INSTALL) -D $(SONAME) $(DESTDIR)/$(LIBDIR)/$(SONAME)
|
|
+ ln -s $(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 http_parser.h $(DESTDIR)/$(INCLUDEDIR)/http_parser.h
|
|
+ $(INSTALL) -D -s $(SONAME) $(DESTDIR)/$(LIBDIR)/$(SONAME)
|
|
+ ln -s $(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
|
|
|
|
uninstall:
|
|
- rm $(INCLUDEDIR)/http_parser.h
|
|
- rm $(LIBDIR)/$(SONAME)
|
|
- rm $(LIBDIR)/libhttp_parser.so
|
|
+ rm $(DESTDIR)/$(INCLUDEDIR)/http_parser.h
|
|
+ rm $(DESTDIR)/$(LIBDIR)/$(SONAME)
|
|
+ rm $(DESTDIR)/$(LIBDIR)/libhttp_parser.so
|
|
|
|
clean:
|
|
rm -f *.o *.a tags test test_fast test_g \
|