about summary refs log tree commit diff
path: root/misc/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'misc/emacs')
-rw-r--r--misc/emacs/Makefile.am5
-rw-r--r--misc/emacs/local.mk1
2 files changed, 1 insertions, 5 deletions
diff --git a/misc/emacs/Makefile.am b/misc/emacs/Makefile.am
deleted file mode 100644
index 49f19fe50628..000000000000
--- a/misc/emacs/Makefile.am
+++ /dev/null
@@ -1,5 +0,0 @@
-EXTRA_DIST = nix-mode.el
-
-install-data-local:
-	$(INSTALL) -d $(DESTDIR)$(datadir)/emacs/site-lisp
-	$(INSTALL_DATA) $(srcdir)/nix-mode.el $(DESTDIR)$(datadir)/emacs/site-lisp
diff --git a/misc/emacs/local.mk b/misc/emacs/local.mk
new file mode 100644
index 000000000000..8e06b881bcdf
--- /dev/null
+++ b/misc/emacs/local.mk
@@ -0,0 +1 @@
+$(eval $(call install-data-in,$(d)/nix-mode.el,$(datadir)/emacs/site-lisp))