aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorforcer <forcer>2006-04-29 18:39:00 +0000
committerforcer <mwolson@gnu.org>2006-04-29 18:39:00 +0000
commit227fb23c0e0fbc25685aba46a991493a7decb001 (patch)
tree7c69b9f78f9f5d9b0634b74147d0430ca0eb5ad3 /Makefile
parentf49efbf33b4f5b00c4c4763e90919ad8a5ecf928 (diff)
Install correctly with Debian _and_ make install.
darcs-hash:20060429183958-2189f-44de028e3face57316a1485fc9e09d29ecceb7eb.gz
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 12 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index be77c46..0fe2863 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,21 @@
EMACS=emacs
SITEFLAG=--no-site-file
+GZIP=gzip
ALLSOURCE=$(wildcard *.el)
ALLCOMPILED=$(wildcard *.elc)
SPECIAL=emms-auto.el emms-maint.el
SOURCE=$(filter-out $(SPECIAL),$(ALLSOURCE))
TARGET=$(patsubst %.el,%.elc,$(SOURCE))
-PREFIX=/usr/local
-INFODIR=$(PREFIX)/info
-DESTDIR=$(PREFIX)/share/emacs/site-lisp/emms
+MAN1PAGES=emms-print-metadata.1
+DESTDIR=
+PREFIX=$(DESTDIR)/usr/local
+INFODIR=$(PREFIX)/info
+MAN1DIR=$(PREFIX)/share/man/man1
+SITELISP=$(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
all: $(TARGET) emms-auto.el emms.info
@@ -44,18 +44,19 @@ emms-print-metadata: emms-print-metadata.c
$(CC) -o $@ $< -I/usr/include/taglib -L/usr/lib -ltag_c
install:
- test -d $(DESTDIR) || mkdir -p $(DESTDIR)
+ test -d $(SITELISP) || mkdir -p $(SITELISP)
[ -d $(INFODIR) ] || install -d $(INFODIR)
- install -m 644 $(ALLSOURCE) $(DESTDIR)
- install -m 644 $(ALLCOMPILED) $(DESTDIR)
+ install -m 644 $(ALLSOURCE) $(SITELISP)
+ install -m 644 $(ALLCOMPILED) $(SITELISP)
install -m 0644 emms.info $(INFODIR)/emms
+ for p in $(MAN1PAGES) ; do $(GZIP) -9c $$p > $(MAN1DIR)/$$p.gz ; done
$(INSTALLINFO) emms.info
remove-info:
$(INSTALLINFO) --remove emms.info
deb-install:
- install -m 644 $(ALLSOURCE) $(DESTDIR)
+ install -m 644 $(ALLSOURCE) $(SITELISP)
ChangeLog:
darcs changes > $@