From 8583068217dd73d2f42bb6903cfffdb71ad745b0 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 18 Apr 2013 13:45:28 -0400 Subject: build: Add install target. --- (limited to 'build') 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: . + 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 -- cgit v0.9.1