aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYoni Rabkin <yoni@rabkins.net>2008-06-16 18:45:37 +0300
committerMichael Olson <mwolson@gnu.org>2008-06-16 20:41:02 -0700
commit0642030ce328850db198cc0134bdac6a5fdd041e (patch)
tree0a527a738f423686e35510c9a1b6fd959adce44e /Makefile
parent8a45d190bfc5e4728f2bcab5674636c0779f7074 (diff)
Emms directory structure change/cleanup
I've been thinking about moving some parts of Emms to their own directories in order to tidy up the distribution. Attached is a patch which does this for the documentation. What do you people think? >From 61459ce16456b31b119faefc6333007a023436d5 Mon Sep 17 00:00:00 2001 From: Yoni Rabkin <yonirabkin@member.fsf.org> Date: Thu, 8 May 2008 23:58:07 +0300 Subject: [PATCH] Moved Emms documentation to a newly created doc directory. As a first step in cleaning up the Emms distribution directory structure, I've moved all the documentation to its own directory. Makefiles have been created/updated accordingly. Signed-off-by: Yoni Rabkin <yonirabkin@member.fsf.org>
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