diff options
-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)" |