History

build: fix out-of-tree install

Makefile (install): Fix installation of headers. Do not try to install twice libtcc.h, once should be enough.

Akim Demaille committed 13 years ago

Commit e79281f1 parent 7667a881 file · +1 −3Browse files

Unified · Split

Makefile+1−3
@@ -275,15 +275,13 @@ endif · 274 unmodified lines
275275 ifneq ($(BCHECK_O),)
276276 $(INSTALL) -m644 $(BCHECK_O) "$(tccdir)"
277277 endif
278− $(INSTALL) -m644 $(addprefix include/,$(TCC_INCLUDES)) "$(tccdir)/include"
278+ $(INSTALL) -m644 $(addprefix $(top_srcdir)/include/,$(TCC_INCLUDES)) "$(tccdir)/include"
279279 mkdir -p "$(libdir)"
280280 $(INSTALL) -m755 $(LIBTCC) "$(libdir)"
281281 ifdef DISABLE_STATIC
282282 ln -sf "$(ln_libdir)/libtcc.so.1.0" "$(libdir)/libtcc.so.1"
283283 ln -sf "$(ln_libdir)/libtcc.so.1.0" "$(libdir)/libtcc.so"
284284 endif
285− mkdir -p "$(includedir)"
286− $(INSTALL) -m644 libtcc.h "$(includedir)"
287285 mkdir -p "$(docdir)"
288286 -$(INSTALL) -m644 tcc-doc.html "$(docdir)"
289287 ifdef CONFIG_CROSS