diff options
author | Ian Lance Taylor <iant@google.com> | 2015-01-22 04:19:11 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-01-22 04:19:11 +0000 |
commit | fa3340ec8f4d26bba4efa5095c8a2a142f34b8bc (patch) | |
tree | 5d832b2986e5e8167262b449e98bbb34eca1ef0f /gotools/Makefile.am | |
parent | d4290ecad0b522bbe2850005215df7140d9a3bcc (diff) | |
download | gcc-fa3340ec8f4d26bba4efa5095c8a2a142f34b8bc.zip gcc-fa3340ec8f4d26bba4efa5095c8a2a142f34b8bc.tar.gz gcc-fa3340ec8f4d26bba4efa5095c8a2a142f34b8bc.tar.bz2 |
Makefile.am (noinst_PROGRAMS): New variable.
* Makefile.am (noinst_PROGRAMS): New variable.
(libexecsub_PROGRAMS): Remove variable.
(install-exec-local, uninstall-local): New targets.
* Makefile.in: Rebuild.
From-SVN: r219985
Diffstat (limited to 'gotools/Makefile.am')
-rw-r--r-- | gotools/Makefile.am | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gotools/Makefile.am b/gotools/Makefile.am index 5e044d2..5bc084a 100644 --- a/gotools/Makefile.am +++ b/gotools/Makefile.am @@ -105,7 +105,7 @@ if NATIVE # and install them as regular programs. bin_PROGRAMS = go$(EXEEXT) gofmt$(EXEEXT) -libexecsub_PROGRAMS = cgo$(EXEEXT) +noinst_PROGRAMS = cgo$(EXEEXT) go$(EXEEXT): $(go_cmd_go_files) zdefaultcc.go $(LIBGODEP) $(GOLINK) $(go_cmd_go_files) zdefaultcc.go $(LIBS) $(NET_LIBS) @@ -114,6 +114,14 @@ gofmt$(EXEEXT): $(go_cmd_gofmt_files) $(LIBGODEP) cgo$(EXEEXT): $(go_cmd_cgo_files) zdefaultcc.go $(LIBGODEP) $(GOLINK) $(go_cmd_cgo_files) zdefaultcc.go $(LIBS) $(NET_LIBS) +install-exec-local: cgo$(EXEEXT) + $(MKDIR_P) $(DESTDIR)$(libexecsubdir) + rm -f $(DESTDIR)$(libexecsubdir)/cgo$(exeext) + $(INSTALL_PROGRAM) cgo$(exeext) $(DESTDIR)$(libexecsubdir)/cgo$(exeext) + +uninstall-local: + rm -f $(DESTDIR)$(libexecsubdir)/cgo$(exeext) + else # For a non-native build we have to build the programs using a |