summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/commence.in1
-rw-r--r--config/conclude.in26
2 files changed, 23 insertions, 4 deletions
diff --git a/config/commence.in b/config/commence.in
index b0b987c..878bd89 100644
--- a/config/commence.in
+++ b/config/commence.in
@@ -59,6 +59,7 @@ LT_UNINSTALL=$(LT) --mode=uninstall $(RM)
## defined. The main makefile is free to redefine these to something else.
DOCDIR=$(docdir)
SUBDOCDIR=
+EXAMPLEDIR=$(docdir)
LIB=
LIB_SRC=
LIB_OBJ=
diff --git a/config/conclude.in b/config/conclude.in
index c24a87e..07a9040 100644
--- a/config/conclude.in
+++ b/config/conclude.in
@@ -84,13 +84,19 @@ check test _test: tests
## Make installation directories directories if they don't exist.
##
$(libdir):
- mkdir $@ && chmod 755 $@
+ $(top_srcdir)/bin/mkdirs $@
$(includedir):
- mkdir $@ && chmod 755 $@
+ $(top_srcdir)/bin/mkdirs $@
$(bindir):
- mkdir $@ && chmod 755 $@
+ $(top_srcdir)/bin/mkdirs $@
+
+$(DOCDIR):
+ $(top_srcdir)/bin/mkdirs $@
+
+$(EXAMPLEDIR):
+ $(top_srcdir)/bin/mkdirs $@
## Install the library, the public header files, and public programs.
##
@@ -124,9 +130,21 @@ install: $(PUB_LIB) $(PUB_HDR) $(PUB_PROGS) $(libdir) $(includedir) $(bindir)
fi; \
done
+install-examples: $(EXAMPLE_PROGS) $(EXAMPLEDIR)
+ @for f in X $(EXAMPLE_PROGS); do \
+ if test $$f != X; then \
+ (set -x; $(INSTALL_DATA) $(srcdir)/$$f $(EXAMPLEDIR)/. || exit 1);\
+ fi; \
+ done
+
+uninstall-examples:
+ @if test -n "$(EXAMPLE_PROGS)"; then \
+ set -x; cd $(EXAMPLEDIR) && $(RM) $(EXAMPLE_PROGS); \
+ fi
+
## Install the documents.
##
-install-doc: $(PUB_DOCS)
+install-doc: $(PUB_DOCS) $(DOCDIR)
@if test -n "$(DOCDIR)"; then \
if test -d "$(DOCDIR)"; then \
:; \