2015-12-01 13:15:19 +01:00
|
|
|
From 384917321c45e492b0ca7aaa94d4b15324aef95d Mon Sep 17 00:00:00 2001
|
2015-08-27 22:54:56 +02:00
|
|
|
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
Date: Fri, 28 Aug 2015 19:02:11 +0200
|
|
|
|
Subject: [PATCH] Use -f option when calling ln at install time
|
|
|
|
|
|
|
|
This allows "make install; make install" to work properly.
|
|
|
|
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
2015-12-01 13:15:19 +01:00
|
|
|
Signed-off-by: Renaud AUBIN <root@renaud.io>
|
2015-08-27 22:54:56 +02:00
|
|
|
---
|
|
|
|
Makefile | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/Makefile b/Makefile
|
2015-12-01 13:15:19 +01:00
|
|
|
index 33c8ba0..b36d95a 100644
|
2015-08-27 22:54:56 +02:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2015-12-01 13:15:19 +01:00
|
|
|
@@ -125,12 +125,12 @@ tags: http_parser.c http_parser.h test.c
|
2015-08-27 22:54:56 +02:00
|
|
|
install: library
|
|
|
|
$(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
|
|
|
|
$(INSTALL) -D $(SONAME) $(LIBDIR)/$(SONAME)
|
2015-12-01 13:15:19 +01:00
|
|
|
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
|
|
|
|
+ ln -sf $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
|
2015-08-27 22:54:56 +02:00
|
|
|
|
|
|
|
install-strip: library
|
|
|
|
$(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
|
|
|
|
$(INSTALL) -D -s $(SONAME) $(LIBDIR)/$(SONAME)
|
2015-12-01 13:15:19 +01:00
|
|
|
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
|
|
|
|
+ ln -sf $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
|
2015-08-27 22:54:56 +02:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm $(INCLUDEDIR)/http_parser.h
|
|
|
|
--
|
2015-12-01 13:15:19 +01:00
|
|
|
2.6.2
|
2015-08-27 22:54:56 +02:00
|
|
|
|