aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile26
1 files changed, 20 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index c020954..be77c46 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,20 @@
-DESTDIR=
EMACS=emacs
SITEFLAG=--no-site-file
ALLSOURCE=$(wildcard *.el)
+ALLCOMPILED=$(wildcard *.elc)
SPECIAL=emms-auto.el emms-maint.el
SOURCE=$(filter-out $(SPECIAL),$(ALLSOURCE))
TARGET=$(patsubst %.el,%.elc,$(SOURCE))
-DESTDIR=/usr/share/emacs/site-lisp/emms
-INSTALLINFO=/usr/sbin/install-info
+PREFIX=/usr/local
+INFODIR=$(PREFIX)/info
+DESTDIR=$(PREFIX)/share/emacs/site-lisp/emms
+
+
+INSTALLINFO = /usr/sbin/install-info --info-dir=$(INFODIR)
+
+# If you're using Debian, uncomment the following line and comment out
+# the above line.
+#INSTALLINFO = /usr/sbin/install-info --section "Emacs" "emacs" --info-dir=$(INFODIR)
.PHONY: all install deb-install clean
.PRECIOUS: %.elc %.info %.html
@@ -37,11 +45,17 @@ emms-print-metadata: emms-print-metadata.c
install:
test -d $(DESTDIR) || mkdir -p $(DESTDIR)
- install -m 644 $(ALLSOURCE) $(DESTDIR)/usr/share/emacs/site-lisp/emms/
- $(INSTALLINFO) --infodir=$(DESTDIR)/usr/share/info/ emms.info
+ [ -d $(INFODIR) ] || install -d $(INFODIR)
+ install -m 644 $(ALLSOURCE) $(DESTDIR)
+ install -m 644 $(ALLCOMPILED) $(DESTDIR)
+ install -m 0644 emms.info $(INFODIR)/emms
+ $(INSTALLINFO) emms.info
+
+remove-info:
+ $(INSTALLINFO) --remove emms.info
deb-install:
- install -m 644 $(ALLSOURCE) $(DESTDIR)/usr/share/emacs/site-lisp/emms/
+ install -m 644 $(ALLSOURCE) $(DESTDIR)
ChangeLog:
darcs changes > $@