Skip to content
Browse files

prevent autotools stuff rebuilding for snappy

git may checkout files in arbitrary order. Looks like on GNU/Linux
with high precision mtime it can cause produced Makefile to think that
Makefile.in or config.h.in or even aclocal.m4 need to be rebuilt. And
that fails on my machine because it has different versions of
autotools.

The cure is to touch this files in correct order.

Change-Id: I1eacdc606c3885cdb449c44fbe90c6ee0b914a59
Reviewed-on: http://review.couchbase.org/14006
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  • Loading branch information...
1 parent 111b624 commit 6882d34f3512597d4749042a406d8e2a7bfd07d3 Aliaksey Kandratsenka committed with trondn
Showing with 11 additions and 0 deletions.
  1. +11 −0 Makefile.top
View
11 Makefile.top
@@ -196,6 +196,17 @@ moxi_OPTIONS += --with-memcached=$(DESTDIR)$(PREFIX)/bin/memcached
endif
deps-for-moxi: make-install-libconflate make-install-libvbucket make-install-libmemcached make-install-memcached
+snappy/autotools-rebuild-silenced: snappy/Makefile
+ touch snappy/aclocal.m4
+ touch snappy/Makefile.in
+ touch snappy/config.h.in
+ touch snappy/configure
+ touch snappy/config.status
+ touch snappy/Makefile
+ touch $@
+
+make-install-snappy: snappy/autotools-rebuild-silenced
+
deps-for-couchstore: make-install-snappy
couchstore_OPTIONS := CFLAGS='-I$(PREFIX)/include' CPPFLAGS='-I$(PREFIX)/include' LDFLAGS='-L$(PREFIX)/lib'

0 comments on commit 6882d34

Please sign in to comment.
Something went wrong with that request. Please try again.