lib.c (config_set_var_n): Return a pointer even if we don't change the var.
[runlisp] / vars.am
diff --git a/vars.am b/vars.am
index 4c9e164..f970aff 100644 (file)
--- a/vars.am
+++ b/vars.am
 
 EXTRA_DIST              =
 CLEANFILES              =
+SUFFIXES                =
 
 bin_PROGRAMS            =
 bin_SCRIPTS             =
 nodist_bin_SCRIPTS      =
 
 man_MANS                =
+doc_DATA                =
+
+pkgdata_DATA            =
+pkgdata_SCRIPTS                 =
+
+pkgconfdir              = $(sysconfdir)/$(PACKAGE_NAME)
+pkgconf_DATA            =
 
-noinst_PROGRAMS                 =
 noinst_DATA             =
+noinst_LIBRARIES        =
+noinst_PROGRAMS                 =
 
 ###--------------------------------------------------------------------------
 ### Standard configuration substitutions.
@@ -47,7 +56,7 @@ SUBSTITUTIONS = \
        prefix=$(prefix) exec_prefix=$(exec_prefix) \
        libdir=$(libdir) includedir=$(includedir) \
        bindir=$(bindir) sbindir=$(sbindir) \
-       imagedir=$(imagedir) \
+       etcdir=$(sysconfdir) imagedir=$(imagedir) \
        PACKAGE=$(PACKAGE) VERSION=$(VERSION) \
        ECLOPT=$(ECLOPT)
 
@@ -57,6 +66,21 @@ v_subst_0             = @echo "  SUBST    $@";
 SUBST                   = $(v_subst)$(confsubst)
 
 ###--------------------------------------------------------------------------
+### Manpages.
+
+v_man                   = $(v_man_@AM_V@)
+v_man_                  = $(v_man_@AM_DEFAULT_V@)
+v_man_0                         = @echo "  MAN      $@";
+MAN                     = man
+
+SUFFIXES               += .1 .5 .1.in .5.in .pdf
+.1.pdf:; $(v_man)$(MAN) -Tpdf -l >$@.new $< && mv $@.new $@
+.5.pdf:; $(v_man)$(MAN) -Tpdf -l >$@.new $< && mv $@.new $@
+.1.in.1: Makefile; $(SUBST) $< $(SUBSTITUTIONS) >$@.new && mv $@.new $@
+.5.in.5: Makefile; $(SUBST) $< $(SUBSTITUTIONS) >$@.new && mv $@.new $@
+CLEANFILES             += *.1 *.5 *.pdf
+
+###--------------------------------------------------------------------------
 ### List of Lisp systems.
 
 LISPS                   =