summaryrefslogtreecommitdiffstats
path: root/config/conclude.in
diff options
context:
space:
mode:
Diffstat (limited to 'config/conclude.in')
-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.