From 8098756bdcde2e822feea0112ac4d70ecaf6c3f1 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 22 Apr 2013 11:40:28 -0400 Subject: Write needed documentation files in source target. --- diff --git a/build b/build index 0e3cc8f..00850a1 100755 --- a/build +++ b/build @@ -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) \ diff --git a/source.mk b/source.mk index 353f903..bd83ad2 100644 --- a/source.mk +++ b/source.mk @@ -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)" -- cgit v0.9.1