diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2009-04-15 22:35:33 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2009-04-15 22:35:33 (GMT) |
commit | 0cf01ab09e9f5efbe241b87a05485d2b6d0a9abb (patch) | |
tree | 9f0bebfac4085ce94bfc9c9173992f700d0592bd /Makefile.in | |
parent | b99cdcd1e2e8b7c5bb99d330b0b1545ef9f446ee (diff) | |
download | hdf5-0cf01ab09e9f5efbe241b87a05485d2b6d0a9abb.zip hdf5-0cf01ab09e9f5efbe241b87a05485d2b6d0a9abb.tar.gz hdf5-0cf01ab09e9f5efbe241b87a05485d2b6d0a9abb.tar.bz2 |
[svn-r16762] New feature (Bug ID: 1345):
Added a Make target of check-all-install to test the correctness of
installing via the prefix= or $DESTDIR options.
Platforms tested:
jam by hand. The test failed because installing by
$DESTDIR is actually not working! I go on with
the commit because I am sure the tests are correct.
Will fix DESTDIR problem.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in index fbd1afd..0cb0235 100644 --- a/Makefile.in +++ b/Makefile.in @@ -133,6 +133,23 @@ check-install: fi; \ done +# check-all-install tests all installation methods. +# Install via different mechanism and then compare against the default. +# Fine if only libXXX.a files are different since they may have been ranlib'ed. +check-all-install: + @echo Installing to default location + $(MAKE) install + @echo Installing to different prefix location + $(MAKE) prefix=${ROOT}/prefix-tmp install + @echo Compare against the default installation. + @echo Fine if only libXXX.a files are different. + -diff -r prefix-tmp ${prefix} + @echo Installing to different $$\DESTDIR location + env DESTDIR=${ROOT}/destdir-tmp $(MAKE) install + @echo Compare against the default installation. + @echo Fine if only libXXX.a files are different. + -diff -r destdir-tmp${prefix} ${prefix} + ## Number format detection H5detect: (cd src && $(MAKE) $@) @@ -148,6 +165,7 @@ clean mostlyclean: (cd $$d && $(MAKE) $@); \ done -$(RM) conftest conftest.c + -$(RM) -rf prefix-tmp destdir-tmp distclean: @@SETX@; for d in $(SUBDIRS) doc perform examples; do \ |