Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 99 lines (75 sloc) 2.452 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
.PHONY: all lisp autoloads examples experimental doc clean realclean distclean fullclean install-info install-bin install test dist release debbuild debrevision debrelease upload
.PRECIOUS: %.info %.html

include Makefile.defs

SUBDIRS = lisp examples experimental

all: autoloads lisp muse.info

lisp:
(cd lisp && $(MAKE))

autoloads:
(cd lisp && $(MAKE) autoloads)

examples:
(cd examples && $(MAKE))

experimental:
(cd experimental && $(MAKE))

%.info: %.texi
makeinfo $<

%.html: %.texi
makeinfo --html --no-split $<

doc: muse.info muse.html

clean:
for i in $(SUBDIRS); do \
(cd $$i && $(MAKE) clean); done

realclean fullclean: clean
-rm -f muse.info muse.html
for i in $(SUBDIRS); do \
(cd $$i && $(MAKE) distclean); done

install-info: muse.info
[ -d $(INFODIR) ] || install -d $(INFODIR)
install -m 0644 muse.info $(INFODIR)/muse
$(INSTALLINFO) $(INFODIR)/muse

install-bin: lisp
(cd lisp && $(MAKE) install)

install: install-bin install-info

test:
(cd lisp && $(MAKE) test)

distclean: realclean
-rm -fr ../muse-$(VERSION)

dist: distclean
tla inventory -sB | tar -cf - --no-recursion -T- | \
(mkdir -p ../muse-$(VERSION); cd ../muse-$(VERSION) && \
tar xf -)
rm -fr ../muse-$(VERSION)/debian

release: dist
(cd .. && tar -czf muse-$(VERSION).tar.gz muse-$(VERSION) ; \
zip -r muse-$(VERSION).zip muse-$(VERSION) && \
gpg --detach muse-$(VERSION).tar.gz && \
gpg --detach muse-$(VERSION).zip)

debbuild:
(cd ../muse-el-$(VERSION) && \
dpkg-buildpackage -v$(LASTUPLOAD) $(BUILDOPTS) \
-us -uc -rfakeroot && \
echo "Running lintian ..." && \
lintian -i ../muse-el_$(VERSION)*.deb || : && \
echo "Done running lintian." && \
debsign)
cp ../muse-el_$(VERSION)* ../../dist

debrevision: dist
-rm -f ../../dist/muse-el_*
-rm -f ../muse-el_$(VERSION)-*
-rm -fr ../muse-el-$(VERSION)
mv ../muse-$(VERSION) ../muse-el-$(VERSION)
cp -r debian ../muse-el-$(VERSION)
-rm -fr ../muse-el-$(VERSION)/debian/.arch-ids
$(MAKE) debbuild

debrelease: dist
-rm -f ../../dist/muse-el_*
-rm -f ../muse-el_$(VERSION)*
-rm -fr ../muse-el-$(VERSION)
mv ../muse-$(VERSION) ../muse-el-$(VERSION)
(cd .. && tar -czf muse-el_$(VERSION).orig.tar.gz muse-el-$(VERSION))
cp -r debian ../muse-el-$(VERSION)
-rm -fr ../muse-el-$(VERSION)/debian/.arch-ids
$(MAKE) debbuild

upload: release
(cd .. && scp muse-$(VERSION).zip* muse-$(VERSION).tar.gz* \
mwolson@download.gna.org:/upload/muse-el)
Something went wrong with that request. Please try again.