From 8764993c0d23d11102dc548eb318e489a665391f Mon Sep 17 00:00:00 2001 From: seyko Date: Fri, 6 Mar 2015 17:13:45 +0300 Subject: [PATCH] Makefile: install tcc$(EXESUF) as symlink to the $(ARCH)-tcc --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ca9299f3..16b806c2 100644 --- a/Makefile +++ b/Makefile @@ -257,11 +257,8 @@ install-strip: install ifndef CONFIG_WIN32 install: $(PROGS) $(TCCLIBS) $(TCCDOCS) mkdir -p "$(bindir)" -ifeq ($(CC),tcc) - $(INSTALL) -m755 $(PROGS) $(PROGS_CROSS_LINK) "$(bindir)" -else $(INSTALLBIN) -m755 $(PROGS) "$(bindir)" -endif + cp -P tcc$(EXESUF) "$(bindir)" mkdir -p "$(mandir)/man1" -$(INSTALL) -m644 tcc.1 "$(mandir)/man1" mkdir -p "$(infodir)" @@ -300,6 +297,7 @@ endif uninstall: rm -fv $(foreach P,$(PROGS),"$(bindir)/$P") + rm -fv "$(bindir)/tcc$(EXESUF)" rm -fv $(foreach P,$(LIBTCC1),"$(tccdir)/$P") rm -fv $(foreach P,$(TCC_INCLUDES),"$(tccdir)/include/$P") rm -fv "$(mandir)/man1/tcc.1" "$(infodir)/tcc-doc.info" -- 2.11.4.GIT