diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7410fe1 --- /dev/null +++ b/Makefile @@ -0,0 +1,39 @@ +DESTDIR= +EMACS=emacs +ALLSOURCE=$(wildcard *.el) +SPECIAL=emms-auto.el emms-maint.el +SOURCE=$(filter-out $(SPECIAL),$(ALLSOURCE)) +TARGET=$(patsubst %.el,%.elc,$(SOURCE)) +DESTDIR=/usr/share/emacs/site-lisp/emms +INSTALLINFO=/usr/sbin/install-info + +.PHONY: all install clean +all: $(TARGET) emms-auto.el emms.info + +emms-auto.el: emms-auto.in $(SOURCE) + cp emms-auto.in emms-auto.el + -rm -f emms-auto.elc + $(EMACS) --no-init-file --no-site-file -batch \ + -l emms-maint.el \ + -l emms-auto.el \ + -f generate-autoloads \ + $(shell pwd)/emms-auto.el . + +%.elc: %.el + $(EMACS) --no-init-file --no-site-file -batch \ + -l emms-maint.el \ + -f batch-byte-compile $< + +%.info: %.texinfo + makeinfo $< + +install: + test -d $(DESTDIR) || mkdir -p $(DESTDIR) + install -m 644 $(ALLSOURCE) $(DESTDIR)/usr/share/emacs/site-lisp/emms/ + $(INSTALLINFO) --infodir=$(DESTDIR)/usr/share/info/ emms.info + +deb-install: + install -m 644 $(ALLSOURCE) $(DESTDIR)/usr/share/emacs/site-lisp/emms/ + +clean: + -rm -f *~ *.elc emms-auto.el emms.info |