Commit 34311a89c5fec7e44fab5cb92e8cef8cc4702077

Authored by Jay Berkenbilt
1 parent bfda7177

Add autofiles.zip make target

This target creates autofiles.zip from a source distribution or fresh
checkout after autogen.sh has been run.  The resulting zip can be
unzipped over a fresh checkout to support easier building on Windows
from a clean checkout.
.gitignore
1 aclocal.m4 1 aclocal.m4
2 autoconf.mk 2 autoconf.mk
  3 +autofiles.zip
3 autom4te.cache/ 4 autom4te.cache/
4 config.log 5 config.log
5 config.status 6 config.status
Makefile
@@ -91,6 +91,11 @@ $(foreach B,$(BUILD_ITEMS),$(eval \ @@ -91,6 +91,11 @@ $(foreach B,$(BUILD_ITEMS),$(eval \
91 clean_$(B): ; \ 91 clean_$(B): ; \
92 $(RM) -r $(B)/$(OUTPUT_DIR))) 92 $(RM) -r $(B)/$(OUTPUT_DIR)))
93 93
  94 +AUTOFILES = configure aclocal.m4 libqpdf/qpdf/qpdf-config.h.in
  95 +autofiles.zip: $(AUTOFILES)
  96 + $(RM) autofiles.zip
  97 + zip autofiles.zip $(AUTOFILES)
  98 +
94 distclean: clean 99 distclean: clean
95 $(RM) -r autoconf.mk autom4te.cache config.log config.status libtool 100 $(RM) -r autoconf.mk autom4te.cache config.log config.status libtool
96 $(RM) libqpdf/qpdf/qpdf-config.h 101 $(RM) libqpdf/qpdf/qpdf-config.h
@@ -103,6 +108,7 @@ maintainer-clean: distclean @@ -103,6 +108,7 @@ maintainer-clean: distclean
103 $(RM) configure doc/qpdf-manual.* libqpdf/qpdf/qpdf-config.h.in 108 $(RM) configure doc/qpdf-manual.* libqpdf/qpdf/qpdf-config.h.in
104 $(RM) aclocal.m4 109 $(RM) aclocal.m4
105 $(RM) -r install-mingw install-msvc external-libs 110 $(RM) -r install-mingw install-msvc external-libs
  111 + $(RM) autofiles.zip
106 112
107 .PHONY: $(TEST_TARGETS) 113 .PHONY: $(TEST_TARGETS)
108 $(foreach B,$(TEST_ITEMS),$(eval \ 114 $(foreach B,$(TEST_ITEMS),$(eval \
README-windows.txt
@@ -77,6 +77,18 @@ You can also download qpdf-external-libs-src.zip and follow the @@ -77,6 +77,18 @@ You can also download qpdf-external-libs-src.zip and follow the
77 instructions in the README.txt there for how to build external libs. 77 instructions in the README.txt there for how to build external libs.
78 78
79 79
  80 +Building from version control
  81 +=============================
  82 +
  83 +If you check out qpdf from version control, you will not have the
  84 +files that are generated by autoconf. If you are not changing these
  85 +files, you can grab them from a source distribution or create them
  86 +from a system that has autoconf. To create them from scratch, run
  87 +./autogen.sh on a system that has autoconf installed. Once you have
  88 +them, you can run make CLEAN=1 autofiles.zip. This will create an
  89 +autofiles.zip that you can extract on top of a fresh checkout.
  90 +
  91 +
80 Building with MinGW 92 Building with MinGW
81 =================== 93 ===================
82 94