summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-04-18 13:45:28 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-04-18 13:45:28 (EDT)
commit8583068217dd73d2f42bb6903cfffdb71ad745b0 (patch)
tree0110ddeeb8e9c27cd36da18dde529ee140c4f510 /build
parent59b0b82c3d1aba45877afb1efadf34b656425c3b (diff)
build: Add install target.
Diffstat (limited to 'build')
-rwxr-xr-xbuild18
1 files changed, 18 insertions, 0 deletions
diff --git a/build b/build
index 84898e7..2431af3 100755
--- a/build
+++ b/build
@@ -44,9 +44,27 @@ configure:
touch $@
build: configure
+ # TODO: This should be done in the source target.
+ for f in \
+ gcc/doc/gcc.texi gcc/doc/invoke.texi gcc/doc/gcov.texi \
+ gcc/doc/include/funding.texi gcc/doc/gccint.texi \
+ libgomp/libgomp.texi; do \
+ >src/$${f}; \
+ done
oh-autobuild -B gcc-build -T bootstrap-lean -- -j $${JOBS:-1}
touch $@
+install: build
+ # The -T option is necessary because otherwise:
+ # * oh-autoinstall checks for an "install" target by running make with
+ # the -n option,
+ # * Many commands in GCC makefiles contain the "$(MAKE)" macro
+ # expansion, and
+ # * GNU Make executes any commands that contain "$(MAKE)", even if -n
+ # is specified.
+ # See also: <http://gcc.gnu.org/ml/gcc/2013-04/msg00171.html>.
+ oh-autoinstall -B gcc-build -T install
+
# POSIX.1-2008:
# If the pathname does not begin with a '/' it shall be treated as relative to
# the current working directory of the process, not relative to the directory