summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Politz <politza@hochschule-trier.de>2015-01-14 09:06:32 +0100
committerAndreas Politz <politza@hochschule-trier.de>2015-01-14 09:06:32 +0100
commitaaff78cc64a91e68081b0779595c6e5bb6e202f7 (patch)
treec4f45ab605697bfd2e94a54743137d1dc91a2da4 /Makefile
parent5465b1e3488b362d44a822e36b0c2e24e518bc40 (diff)
Moved files.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..abf9d48
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,50 @@
+SUBDIRS = src tests
+
+LISP_FILES = $(top_srcdir)/lisp/pdf-history.el \
+ $(top_srcdir)/lisp/pdf-info.el \
+ $(top_srcdir)/lisp/pdf-isearch.el \
+ $(top_srcdir)/lisp/pdf-links.el \
+ $(top_srcdir)/lisp/pdf-misc.el \
+ $(top_srcdir)/lisp/pdf-occur.el \
+ $(top_srcdir)/lisp/pdf-outline.el \
+ $(top_srcdir)/lisp/pdf-tools.el \
+ $(top_srcdir)/lisp/pdf-util.el \
+ $(top_srcdir)/lisp/pdf-annot.el \
+ $(top_srcdir)/lisp/pdf-sync.el \
+ $(top_srcdir)/lisp/pdf-view.el \
+ $(top_srcdir)/lisp/pdf-cache.el \
+ $(top_srcdir)/lisp/tablist.el \
+ $(top_srcdir)/lisp/tablist-filter.el
+
+AUX_FILES = $(top_srcdir)/README.org
+
+# Emacs Lisp Package
+ELP_FILES = $(LISP_FILES) $(AUX_FILES) $(top_builddir)/src/epdfinfo
+ELP_NAME = $(PACKAGE_NAME)-$(PACKAGE_VERSION)
+ELP_TAR_FILE = $(ELP_NAME).tar
+ELP_TMP_DIR = elp-tmp-dir
+
+EXTRA_DIST = $(LISP_FILES) $(AUX_FILES)
+CLEANFILES = $(ELP_TAR_FILE)
+
+all-local: $(ELP_TAR_FILE)
+
+$(ELP_TAR_FILE): $(LISP_FILES)
+ mkdir -p $(ELP_TMP_DIR)/$(ELP_NAME)
+ echo "(define-package \"$(PACKAGE_NAME)\" \"$(PACKAGE_VERSION)\" \
+ \"Support library for PDF documents.\")" \
+ > $(ELP_TMP_DIR)/$(ELP_NAME)/$(PACKAGE_NAME)-pkg.el
+ cp -r $(ELP_FILES) -t $(ELP_TMP_DIR)/$(ELP_NAME)/
+ cd $(ELP_TMP_DIR) && \
+ tar cf ../$(ELP_TAR_FILE) $(ELP_NAME)
+ rm -rf -- $(ELP_TMP_DIR)
+
+install-package: all $(ELP_TAR_FILE)
+ if ! which -- "$(EMACS)"; then \
+ echo "No emacs executable found, you have to set EMACS"; \
+ false; \
+ fi
+ $(EMACS) -Q --batch --eval "(package-install-file \
+ \"$$PWD/$(ELP_TAR_FILE)\")"
+
+