diff options
author | yoni-r <yoni-r> | 2006-04-25 11:46:00 +0000 |
---|---|---|
committer | yoni-r <mwolson@gnu.org> | 2006-04-25 11:46:00 +0000 |
commit | e707bd9a77d7ed676cf8da92415318505532b7cf (patch) | |
tree | 5e62c92db0f504294ece80ff4a92fb7136ddd8e7 /Makefile | |
parent | e57195633dabb65ea67d39b1fc58958e8f4a544c (diff) |
fixed Makefile
darcs-hash:20060425114636-6ce53-dddce4f16a9318fd80d798dfe1c567c477ea9538.gz
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 20 insertions, 6 deletions
@@ -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 > $@ |