diff options
author | P. J. McDermott <pjm@nac.net> | 2013-04-22 11:40:28 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-04-22 11:40:28 (EDT) |
commit | 8098756bdcde2e822feea0112ac4d70ecaf6c3f1 (patch) | |
tree | a4e4b5500346e2bec85f4d37cee6fa877dd4ec8a | |
parent | 4ba141f1c5cc4de2138079d43eaf24297dc9184b (diff) |
Write needed documentation files in source target.
-rwxr-xr-x | build | 7 | ||||
-rw-r--r-- | source.mk | 10 |
2 files changed, 10 insertions, 7 deletions
@@ -44,13 +44,6 @@ 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} \ libsubdir=/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION) \ libexecsubdir=/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION) \ @@ -18,6 +18,13 @@ NON_FREE_FILES = \ gcc/fortran/invoke.texi \ libgomp/libgomp.info \ libgomp/libgomp.texi +NEEDED_FILES = \ + gcc/doc/gcc.texi \ + gcc/doc/invoke.texi \ + gcc/doc/gcov.texi \ + gcc/doc/include/funding.texi \ + gcc/doc/gccint.texi \ + libgomp/libgomp.texi UPSTREAM_VER = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \ sed 's/^\([0-9a-z.~-][0-9a-z.~-]*\)+sip[1-9][0-9]*.*$$/\1/') @@ -43,6 +50,9 @@ $(SOURCE_ARCHIVE): for file in $(NON_FREE_FILES); do \ rm -f "gcc-$(UPSTREAM_VER)/$${file}"; \ done + for file in $(NEEDED_FILES); do \ + >"gcc-$(UPSTREAM_VER)/$${file}"; \ + done tar -cjf '$(SOURCE_ARCHIVE)' "gcc-$(UPSTREAM_VER)" rm -Rf "gcc-$(UPSTREAM_VER)" rm -f "$(UPSTREAM_ARCHIVE)" |