Install libtcc.h when invoking make install
authorThomas Preud'homme <robotux@celest.fr>
Mon, 14 Jan 2013 17:16:17 +0000 (14 18:16 +0100)
committerThomas Preud'homme <robotux@celest.fr>
Mon, 14 Jan 2013 17:16:17 +0000 (14 18:16 +0100)
Makefile

index 3aa25e1..d155f45 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -271,6 +271,8 @@ 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 $(top_srcdir)/libtcc.h "$(includedir)"
        mkdir -p "$(docdir)"
        -$(INSTALL) -m644 tcc-doc.html "$(docdir)"
 ifdef CONFIG_CROSS