diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -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 > $@ |