summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
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