Skip to content

Commit

Permalink
Build in srcdir != builddir fashion by default
Browse files Browse the repository at this point in the history
Naturally this doesn't apply to tarballs
  • Loading branch information
stefwalter committed Jan 14, 2014
1 parent 9afb6ef commit 1f4f072
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 19 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ config.sub
configure
configure.tmp
depcomp
makefile
install-sh
INSTALL
libtool
Expand All @@ -61,8 +62,14 @@ x86_64-w64-mingw32
/x86_64_w64-mingw32/

/build/m4/*.m4
/build/common
/build/coverage
/build/coverage.info
/build/doc/
/build/p11-kit/
/build/p11-kit-[0123456789]*/
/build/po/
/build/trust/
/local

/common/tests/hash-test
Expand Down
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ TRUST_DIR =
endif

SUBDIRS = \
build \
common \
p11-kit \
$(TRUST_DIR) \
Expand Down Expand Up @@ -64,7 +63,8 @@ upload-release: $(DIST_ARCHIVES)
scp $(DIST_ARCHIVES) $(DIST_ARCHIVES).sig $(WEBHOST):$(WEBBASE)/releases/

EXTRA_DIST = \
config.rpath \
build/Makefile.tests \
build/Makefile.decl \
HACKING

transifex:
Expand Down
3 changes: 2 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ test -f configure.ac~ && mv configure.ac~ configure.ac

autoreconf --force --install --verbose
if test x"$NOCONFIGURE" = x; then
exec ./configure "$@"
cd build/
exec ../configure "$@"
fi

6 changes: 3 additions & 3 deletions automaint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ configure()
# Configure the local build. To control which arguments are used create a
# CONFIG_SITE script as directed in the autoconf documentation:
# http://www.gnu.org/software/autoconf/manual/autoconf.html#Site-Defaults
configure ./local --prefix=/usr --enable-doc --enable-coverage $ARGS "$@"
configure ./build --prefix=/usr --enable-doc --enable-coverage $ARGS "$@"

# Configure the cross builds
for cross in $CROSS; do
Expand All @@ -37,7 +37,7 @@ done

for target in all check clean distclean; do
echo "$target:"
echo ' $(MAKE) -C ./local' $target
echo ' $(MAKE) -C ./build' $target
echo ' @for dir in $(CROSS); do \'
echo ' $(MAKE) -C ./$$dir' $target '; \'
echo ' done'
Expand All @@ -46,7 +46,7 @@ done
for target in distcheck memcheck leakcheck hellcheck install upload-coverage \
coverage upload-doc upload-release transifex; do
echo "$target:"
echo ' $(MAKE) -C ./local' $target
echo ' $(MAKE) -C ./build' $target
done

) > ./makefile
9 changes: 0 additions & 9 deletions build/Makefile.am

This file was deleted.

2 changes: 1 addition & 1 deletion build/certs/Makefile.am → build/certs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# We copy everything into its final location, and those test files are
# distributed in the tarballs

TRUST = $(top_srcdir)/trust/tests
TRUST = ../../trust/tests

prepare-certs:
cp -v cacert3.der $(TRUST)/input/anchors
Expand Down
2 changes: 0 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,6 @@ privatedir='${libdir}/p11-kit'
AC_SUBST(privatedir)

AC_CONFIG_FILES([Makefile
build/Makefile
build/certs/Makefile
common/Makefile
common/tests/Makefile
doc/Makefile
Expand Down
3 changes: 2 additions & 1 deletion doc/manual/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ XSLTPROC_FLAGS = \
--stringparam man.copyright.section.enabled 0

XSLTPROC_MAN = \
$(XSLTPROC) $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
$(XSLTPROC) $(XSLTPROC_FLAGS) --path $(builddir) \
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl

trust.1: trust.xml $(generate_files)
$(AM_V_GEN) $(XSLTPROC_MAN) $<
Expand Down

0 comments on commit 1f4f072

Please sign in to comment.