123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- # Disarchive
- # Copyright 2020 Timothy Sample <samplet@ngyro.com>
- # Copyright 2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
- #
- # This file is part of Disarchive.
- #
- # Disarchive is free software: you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation, either version 3 of the License, or
- # (at your option) any later version.
- #
- # Disarchive is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with Disarchive. If not, see <https://www.gnu.org/licenses/>.
- include $(top_srcdir)/build-aux/guile.am
- SOURCES = \
- disarchive/config.scm \
- disarchive.scm \
- disarchive/assemblers.scm \
- disarchive/assemblers/bzip2-stream.scm \
- disarchive/assemblers/directory-ref.scm \
- disarchive/assemblers/gzip-member.scm \
- disarchive/assemblers/tarball.scm \
- disarchive/assemblers/xz-file.scm \
- disarchive/binary-filenames.scm \
- disarchive/digests.scm \
- disarchive/disassemblers.scm \
- disarchive/formats/gzip.scm \
- disarchive/git-hash.scm \
- disarchive/kinds/binary-string.scm \
- disarchive/kinds/bzip2.scm \
- disarchive/kinds/octal.scm \
- disarchive/kinds/tar-extension.scm \
- disarchive/kinds/tar-header.scm \
- disarchive/kinds/zero-string.scm \
- disarchive/kinds/xz.scm \
- disarchive/logging.scm \
- disarchive/resolvers.scm \
- disarchive/resolvers/swhid.scm \
- disarchive/scripts/assemble.scm \
- disarchive/scripts/disassemble.scm \
- disarchive/serialization.scm \
- disarchive/utils.scm
- disarchive/config.scm: disarchive/config.scm.in Makefile
- $(AM_V_GEN)mkdir -p disarchive
- $(AM_V_GEN)sed \
- -e 's,[@]PACKAGE_NAME[@],$(PACKAGE_NAME),g' \
- -e 's,[@]VERSION[@],$(VERSION),g' \
- -e 's,[@]GZIP[@],$(GZIP),g' \
- -e 's,[@]libexecdir[@],$(libexecdir),g' \
- -e 's,[@]O_NOFOLLOW[@],$(O_NOFOLLOW),g' \
- -e 's,[@]TAR[@],$(TAR),g' \
- -e 's,[@]XZ[@],$(XZ),g' \
- -e 's,[@]BZIP2[@],$(BZIP2),g' \
- < "$<" > "$@"
- bin_SCRIPTS = \
- scripts/disarchive
- scripts/disarchive: scripts/disarchive.in Makefile
- $(AM_V_GEN)mkdir -p scripts
- $(AM_V_GEN)sed \
- -e 's,[@]ccachedir[@],$(ccachedir),g' \
- -e 's,[@]GUILE[@],$(GUILE),g' \
- -e 's,[@]moddir[@],$(moddir),g' \
- < "$<" > "$@" && \
- chmod a+x "$@"
- libexec_PROGRAMS = \
- libexec/disarchive-zgz
- libexec_disarchive_zgz_SOURCES = \
- libexec/zgz/bits.c \
- libexec/zgz/deflate.c \
- libexec/zgz/gzip.c \
- libexec/zgz/gzip.h \
- libexec/zgz/trees.c \
- libexec/zgz/util.c \
- libexec/zgz/zgz.c
- libexec_disarchive_zgz_LDADD = $(ZLIB_LIBS)
- AM_TESTS_ENVIRONMENT = . $(top_builddir)/build-aux/tests-env;
- TEST_EXTENSIONS = .scm
- SCM_LOG_DRIVER = $(GUILE) --no-auto-compile \
- $(top_srcdir)/build-aux/test-driver.scm
- TESTS = \
- tests/cli.scm \
- tests/kinds/binary-string.scm \
- tests/kinds/bzip2.scm \
- tests/kinds/octal.scm \
- tests/kinds/tar-extension.scm \
- tests/kinds/tar-header.scm \
- tests/kinds/xz.scm \
- tests/kinds/zero-string.scm
- EXTRA_DIST += \
- .dir-locals.el \
- manifest.scm \
- disarchive/config.scm.in \
- scripts/disarchive.in \
- build-aux/git-version-gen \
- build-aux/gitlog-to-changelog \
- build-aux/test-driver.scm \
- tests/kinds.scm \
- tests/data/README \
- tests/data/test-archive.tar \
- tests/data/test-archive.da \
- tests/data/test-archive/test-archive/file-a \
- tests/data/test-archive/test-archive/file-b \
- $(TESTS)
- CLEANFILES += \
- disarchive/config.scm \
- scripts/disarchive
- dist-hook: gen-ChangeLog
- echo $(VERSION) > $(distdir)/.tarball-version
- if test -e .git; then \
- git show HEAD --format=%ct --no-patch 2>/dev/null \
- > $(distdir)/.tarball-timestamp; \
- else \
- cp $(srcdir)/.tarball-timestamp $(distdir)/.tarball-timestamp; \
- fi
- .PHONY: gen-ChangeLog
- gen-ChangeLog:
- $(AM_V_GEN)if test -e .git; then \
- { $(top_srcdir)/build-aux/gitlog-to-changelog \
- --format='%s%n%n%b%n' -- v0.1.0.. && \
- echo && \
- tail +8 $(top_srcdir)/ChangeLog; \
- } > $(distdir)/ChangeLog-t && \
- { rm -f $(distdir)/ChangeLog && \
- mv $(distdir)/ChangeLog-t $(distdir)/ChangeLog; } \
- fi
- # Reproducible tarball
- # Be friendly to Debian; avoid using EPOCH
- override GZIP_ENV = "--best --no-name"
- am__tar = $${TAR-tar} -chof - --sort=name \
- --mtime=@$$(cat "$$tardir"/.tarball-timestamp) \
- --owner=0 --group=0 --numeric-owner \
- --mode=go=rX,u+rw,a-s "$$tardir"
|