aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 10 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index a08bb6d..b8d6930 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,8 @@ SOURCE=$(filter-out $(SPECIAL),$(ALLSOURCE))
TARGET=$(patsubst %.el,%.elc,$(SOURCE))
MAN1PAGES=emms-print-metadata.1
+DOCDIR=doc/
+
DESTDIR=
PREFIX=$(DESTDIR)/usr/local
INFODIR=$(PREFIX)/info
@@ -16,9 +18,9 @@ SITELISP=$(PREFIX)/share/emacs/site-lisp/emms
INSTALLINFO = /usr/sbin/install-info --info-dir=$(INFODIR)
-.PHONY: all install deb-install clean
-.PRECIOUS: %.elc %.info %.html
-all: $(TARGET) emms-auto.el emms.info
+.PHONY: all install docs deb-install clean
+.PRECIOUS: %.elc
+all: $(TARGET) emms-auto.el docs
emms-auto.el: emms-auto.in $(SOURCE)
cp emms-auto.in emms-auto.el
@@ -29,17 +31,14 @@ emms-auto.el: emms-auto.in $(SOURCE)
-f generate-autoloads \
$(shell pwd)/emms-auto.el .
+docs:
+ $(MAKE) -C $(DOCDIR)
+
%.elc: %.el
@$(EMACS) -q $(SITEFLAG) -batch \
-l emms-maint.el \
-f batch-byte-compile $<
-%.info: %.texinfo
- makeinfo --no-split $<
-
-%.html: %.texinfo
- makeinfo --html --no-split $<
-
emms-print-metadata: emms-print-metadata.c
$(CC) -o $@ $< -I/usr/include/taglib -L/usr/lib -ltag_c
@@ -48,7 +47,7 @@ install:
[ -d $(INFODIR) ] || install -d $(INFODIR)
install -m 644 $(ALLSOURCE) $(SITELISP)
install -m 644 $(ALLCOMPILED) $(SITELISP)
- install -m 0644 emms.info $(INFODIR)/emms
+ install -m 0644 $(DOCDIR)emms.info $(INFODIR)/emms
for p in $(MAN1PAGES) ; do $(GZIP) -9c $$p > $(MAN1DIR)/$$p.gz ; done
$(INSTALLINFO) emms.info
@@ -62,4 +61,4 @@ ChangeLog:
darcs changes > $@
clean:
- -rm -f *~ *.elc emms-auto.el emms.info emms.html emms-print-metadata
+ -rm -f *~ *.elc emms-auto.el $(DOCDIR)emms.info $(DOCDIR)emms.html emms-print-metadata