aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2018-07-14 01:12:23 -0400
committerKyle Meyer <kyle@kyleam.com>2018-07-14 14:03:34 -0400
commit1dd933e602c51016eece8ec24663b877cee0a5f0 (patch)
tree160aaf3c462112fca42c5c9febb5dad88c368e87 /Makefile
downloadannexview-1dd933e602c51016eece8ec24663b877cee0a5f0.tar.gz
Hello, Pluto
Provide support for creating/modifying views and setting metadata. All of git-annex's view commands are exposed, and most of the "setting" features of the 'git annex metadata' command are supported. Of the remaining bits, I intend to support only the --force flag (needed for setting metadata a directory's files). The user interface may still require a good amount of tweaking, but things seem to be in a working state.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c09861c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,33 @@
+
+-include config.mk
+
+DASH_DIR ?= /dev/null
+GHUB_DIR ?= /dev/null
+WITH_EDITOR_DIR ?= /dev/null
+MAGIT_POPUP_DIR ?= /dev/null
+MAGIT_DIR ?= /dev/null
+
+EMACSBIN ?= emacs
+
+LOAD_PATH = -L $(DASH_DIR) -L $(WITH_EDITOR_DIR) -L $(GHUB_DIR) \
+ -L $(MAGIT_POPUP_DIR) -L $(MAGIT_DIR)
+BATCH = $(EMACSBIN) -Q --batch $(LOAD_PATH)
+
+all: annexview.elc annexview-autoloads.el
+
+.PHONY: test
+test: annexview.elc
+ @$(BATCH) -L . -l annexview-tests.el \
+ --eval "(ert-run-tests-batch-and-exit '(not (tag interactive)))"
+
+.PHONY: clean
+clean:
+ $(RM) *.elc annexview-autoloads.el
+
+%.elc: %.el
+ @$(BATCH) -f batch-byte-compile $<
+
+%-autoloads.el: %.el
+ @$(BATCH) --eval \
+ "(let ((make-backup-files nil)) \
+ (update-file-autoloads \"$(CURDIR)/$<\" t \"$(CURDIR)/$@\"))"