Skip to content

Commit

Permalink
distribute files generated by ./bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
mezzarobba committed Oct 11, 2023
1 parent d76d46f commit e91c6b2
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -787,9 +787,15 @@ endif
# maintainer stuff
################################################################################

dist:
git archive --format tar --prefix flint-$(FLINT_MAJOR).$(FLINT_MINOR).$(FLINT_PATCH)/ origin/flint-$(FLINT_MAJOR).$(FLINT_MINOR) > ../flint-$(FLINT_MAJOR).$(FLINT_MINOR).$(FLINT_PATCH).tar; gzip ../flint-$(FLINT_MAJOR).$(FLINT_MINOR).$(FLINT_PATCH).tar
git archive --format zip --prefix flint-$(FLINT_MAJOR).$(FLINT_MINOR).$(FLINT_PATCH)/ origin/flint-$(FLINT_MAJOR).$(FLINT_MINOR) > ../flint-$(FLINT_MAJOR).$(FLINT_MINOR).$(FLINT_PATCH).zip
configure aclocal.m4 src/config.h.in &: bootstrap.sh configure.ac acinclude.m4
./$<

DIST_NAME := flint-$(FLINT_MAJOR).$(FLINT_MINOR).$(FLINT_PATCH)

../$(DIST_NAME).%: FORCE
git archive --format $* --prefix ${DIST_NAME}/src/ --add-file src/config.h.in --prefix ${DIST_NAME}/config/ $(patsubst %,--add-file %,$(wildcard config/*)) --prefix ${DIST_NAME}/ --add-file configure --add-file aclocal.m4 origin/flint-$(FLINT_MAJOR).$(FLINT_MINOR) > $@

dist: ../$(DIST_NAME).tar.gz ../$(DIST_NAME).zip

################################################################################
# debugging
Expand All @@ -798,4 +804,6 @@ dist:
print-%:
@echo "$*=$($*)"

FORCE:

.PHONY: all library shared static examples profile tests check tune valgrind clean distclean install uninstall dist %_TEST_RUN %_VALGRIND_RUN print-% coverage

0 comments on commit e91c6b2

Please sign in to comment.