From 0642030ce328850db198cc0134bdac6a5fdd041e Mon Sep 17 00:00:00 2001 From: Yoni Rabkin Date: Mon, 16 Jun 2008 18:45:37 +0300 Subject: 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 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 --- Makefile | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3