summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-02-12 19:28:25 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-02-12 19:28:25 (GMT)
commitea3daf23d061495c62186608635a091be743868b (patch)
tree8d4e9138ca6ae7466b8fa26201761b6a77815e4b /config
parentd0807e258fca6f61b837cfa235fbdde3a451c252 (diff)
downloadhdf5-ea3daf23d061495c62186608635a091be743868b.zip
hdf5-ea3daf23d061495c62186608635a091be743868b.tar.gz
hdf5-ea3daf23d061495c62186608635a091be743868b.tar.bz2
[svn-r266] Fixed some install and uninstall probs.
Diffstat (limited to 'config')
-rw-r--r--config/conclude.in42
1 files changed, 25 insertions, 17 deletions
diff --git a/config/conclude.in b/config/conclude.in
index cb88ec3..62b48be 100644
--- a/config/conclude.in
+++ b/config/conclude.in
@@ -30,28 +30,36 @@ test _test: $(PROGS)
# Install the library, the public header files, and programs.
install: $(LIB) $(PUB_HDR) $(PROGS)
- @if test -n "$(LIB)"; then \
- test -d $(libdir) || mkdir $(libdir) || exit 1; \
- (set -x; $(INSTALL_DATA) $(LIB) $(libdir)/. || exit 1); \
- fi
- @if test -n "$(PUB_HDR)"; then \
- test -d $(includedir) || mkdir $(includedir) || exit 1; \
- for f in $(PUB_HDR); do \
+ @test -d $(libdir) || mkdir $(libdir)
+ @for f in X $(LIB); do \
+ if test $$f != X; then \
+ (set -x; $(INSTALL_DATA) $$f $(libdir)/. || exit 1); \
+ fi; \
+ done
+ @test -d $(includedir) || mkdir $(includedir)
+ @for f in X $(PUB_HDR); do \
+ if test $$f != X; then \
(set -x; $(INSTALL_DATA) $$f $(includedir)/. || exit 1); \
- done; \
- fi
- @if test -n "$(PROGS)"; then \
- test -d $(bindir) || mkdir $(bindir) || exit 1; \
- for f in $(PROGS); do \
+ fi \
+ done
+ @test -d $(bindir) || mkdir $(bindir)
+ @for f in X $(PROGS); do \
+ if test $$f != X; then \
(set -x; $(INSTALL_PROGRAM) $$f $(bindir)/. || exit 1); \
- done;
- fi
+ fi; \
+ done
# Removes those things that `make install' (would have) installed.
uninstall:
- $(RM) $(libdir)/$(LIB)
- $(RM) $(includedir)/$(PUB_HDR)
- $(RM) $(bindir)/$(PROGS)
+ @if test "X$(LIB)" != X; then \
+ set -x; cd $(libdir) && $(RM) $(LIB); \
+ fi
+ @if test "X$(PUBHDR)" != X; then \
+ set -x; cd $(includedir) && $(RM) $(PUB_HDR); \
+ fi
+ @if test "X$(PROGS)" != X; then \
+ set -x; cd $(bindir) && $(RM) $(PROGS); \
+ fi
# Removes temporary files without removing the final target files. That is,
# remove things like object files but not libraries or executables.