build: fix out-of-tree install
authorAkim Demaille <akim@lrde.epita.fr>
Fri, 21 Dec 2012 13:23:28 +0000 (21 14:23 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Fri, 21 Dec 2012 13:23:28 +0000 (21 14:23 +0100)
Makefile (install): Fix installation of headers.
Do not try to install twice libtcc.h, once should be enough.

Makefile

index a227452..f35bdff 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -275,15 +275,13 @@ endif
 ifneq ($(BCHECK_O),)
        $(INSTALL) -m644 $(BCHECK_O) "$(tccdir)"
 endif
-       $(INSTALL) -m644 $(addprefix include/,$(TCC_INCLUDES)) "$(tccdir)/include"
+       $(INSTALL) -m644 $(addprefix $(top_srcdir)/include/,$(TCC_INCLUDES)) "$(tccdir)/include"
        mkdir -p "$(libdir)"
        $(INSTALL) -m755 $(LIBTCC) "$(libdir)"
 ifdef DISABLE_STATIC
        ln -sf "$(ln_libdir)/libtcc.so.1.0" "$(libdir)/libtcc.so.1"
        ln -sf "$(ln_libdir)/libtcc.so.1.0" "$(libdir)/libtcc.so"
 endif
-       mkdir -p "$(includedir)"
-       $(INSTALL) -m644 libtcc.h "$(includedir)"
        mkdir -p "$(docdir)"
        -$(INSTALL) -m644 tcc-doc.html "$(docdir)"
 ifdef CONFIG_CROSS