summaryrefslogtreecommitdiffstats
path: root/lisp/bbdb/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/bbdb/GNUmakefile')
-rw-r--r--lisp/bbdb/GNUmakefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/lisp/bbdb/GNUmakefile b/lisp/bbdb/GNUmakefile
new file mode 100644
index 0000000..2b51ee4
--- /dev/null
+++ b/lisp/bbdb/GNUmakefile
@@ -0,0 +1,27 @@
+# Rules to generate the files that need to go into the ELPA package.
+
+# Copied and adapted from AUCTeX's GNUmakefile.
+
+MAKEINFO=makeinfo
+INSTALL_INFO=install-info
+
+MANUALS=bbdb
+INFO_FILES=$(MANUALS:=.info)
+
+# FIXME: Currently these files need to be stored in the elpa.git repository
+# because the elpa.gnu.org scripts don't know how to build the Info file
+# from the Texinfo file.
+GENERATED_FILES=dir $(INFO_FILES)
+
+elpa: $(GENERATED_FILES)
+
+clean:
+ rm -f $(GENERATED_FILES)
+
+TEXI_SOURCES:=$(wildcard doc/*.texi)
+$(INFO_FILES): %.info: $(TEXI_SOURCES)
+ cd doc; $(MAKEINFO) --no-split $*.texi
+ mv doc/$*.info $@
+
+dir: $(INFO_FILES)
+ for f in $(INFO_FILES); do $(INSTALL_INFO) --info-dir=. $$f; done