Merged from mwolson@gnu.org--2006 (patch 66)
[muse-el.git] / Makefile
blobb09f02d483d676db4af82ca1610894ae8d1256e5
1 .PHONY: all lisp autoloads examples experimental doc clean realclean distclean fullclean install-info install-bin install test dist release debbuild debrevision debrelease upload
2 .PRECIOUS: %.info %.html
4 include Makefile.defs
6 SUBDIRS = lisp examples experimental
8 all: autoloads lisp muse.info
10 lisp:
11 (cd lisp && $(MAKE))
13 autoloads:
14 (cd lisp && $(MAKE) autoloads)
16 examples:
17 (cd examples && $(MAKE))
19 experimental:
20 (cd experimental && $(MAKE))
22 %.info: %.texi
23 makeinfo $<
25 %.html: %.texi
26 makeinfo --html --no-split $<
28 doc: muse.info muse.html
30 clean:
31 for i in $(SUBDIRS); do \
32 (cd $$i && $(MAKE) clean); done
34 realclean fullclean: clean
35 -rm -f muse.info muse.html
36 for i in $(SUBDIRS); do \
37 (cd $$i && $(MAKE) distclean); done
39 install-info: muse.info
40 [ -d $(INFODIR) ] || install -d $(INFODIR)
41 install -m 0644 muse.info $(INFODIR)/muse
42 $(INSTALLINFO) $(INFODIR)/muse
44 install-bin: lisp
45 (cd lisp && $(MAKE) install)
47 install: install-bin install-info
49 test:
50 (cd lisp && $(MAKE) test)
52 distclean: realclean
53 -rm -fr ../muse-$(VERSION)
55 dist: distclean
56 tla inventory -sB | tar -cf - --no-recursion -T- | \
57 (mkdir -p ../muse-$(VERSION); cd ../muse-$(VERSION) && \
58 tar xf -)
59 rm -fr ../muse-$(VERSION)/debian
61 release: dist
62 (cd .. && tar -czf muse-$(VERSION).tar.gz muse-$(VERSION) ; \
63 zip -r muse-$(VERSION).zip muse-$(VERSION) && \
64 gpg --detach muse-$(VERSION).tar.gz && \
65 gpg --detach muse-$(VERSION).zip)
67 debbuild:
68 (cd ../muse-el-$(VERSION) && \
69 dpkg-buildpackage -v$(LASTUPLOAD) $(BUILDOPTS) \
70 -us -uc -rfakeroot && \
71 echo "Running lintian ..." && \
72 lintian -i ../muse-el_$(VERSION)*.deb || : && \
73 echo "Done running lintian." && \
74 debsign)
75 cp ../muse-el_$(VERSION)* ../../dist
77 debrevision: dist
78 -rm -f ../../dist/muse-el_*
79 -rm -f ../muse-el_$(VERSION)-*
80 -rm -fr ../muse-el-$(VERSION)
81 mv ../muse-$(VERSION) ../muse-el-$(VERSION)
82 cp -r debian ../muse-el-$(VERSION)
83 -rm -fr ../muse-el-$(VERSION)/debian/.arch-ids
84 $(MAKE) debbuild
86 debrelease: dist
87 -rm -f ../../dist/muse-el_*
88 -rm -f ../muse-el_$(VERSION)*
89 -rm -fr ../muse-el-$(VERSION)
90 mv ../muse-$(VERSION) ../muse-el-$(VERSION)
91 (cd .. && tar -czf muse-el_$(VERSION).orig.tar.gz muse-el-$(VERSION))
92 cp -r debian ../muse-el-$(VERSION)
93 -rm -fr ../muse-el-$(VERSION)/debian/.arch-ids
94 $(MAKE) debbuild
96 upload: release
97 (cd .. && scp muse-$(VERSION).zip* muse-$(VERSION).tar.gz* \
98 mwolson@download.gna.org:/upload/muse-el)