Implement <quote> tag.
[muse-el.git] / Makefile
blob81ab6bc3d89cc95a2f00932a8f6ba9140c8a11d7
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: 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))
65 debbuild:
66 (cd ../muse-el-$(VERSION) && \
67 dpkg-buildpackage -v$(LASTUPLOAD) $(BUILDOPTS) \
68 -us -uc -rfakeroot && \
69 echo "Running lintian ..." && \
70 lintian -i ../muse-el_$(VERSION)*.deb || : && \
71 echo "Done running lintian." && \
72 debsign)
73 cp ../muse-el_$(VERSION)* ../../dist
75 debrevision: dist
76 -rm -f ../../dist/muse-el_*
77 -rm -f ../muse-el_$(VERSION)-*
78 -rm -fr ../muse-el-$(VERSION)
79 mv ../muse-$(VERSION) ../muse-el-$(VERSION)
80 cp -r debian ../muse-el-$(VERSION)
81 -rm -fr ../muse-el-$(VERSION)/debian/.arch-ids
82 $(MAKE) debbuild
84 debrelease: dist
85 -rm -f ../../dist/muse-el_*
86 -rm -f ../muse-el_$(VERSION)*
87 -rm -fr ../muse-el-$(VERSION)
88 mv ../muse-$(VERSION) ../muse-el-$(VERSION)
89 (cd .. && tar -czf muse-el_$(VERSION).orig.tar.gz muse-el-$(VERSION))
90 cp -r debian ../muse-el-$(VERSION)
91 -rm -fr ../muse-el-$(VERSION)/debian/.arch-ids
92 $(MAKE) debbuild
94 upload: release
95 (cd .. && gpg --detach muse-$(VERSION).tar.gz && \
96 gpg --detach muse-$(VERSION).zip && \
97 scp muse-$(VERSION).zip* muse-$(VERSION).tar.gz* \
98 mwolson@download.gna.org:/upload/muse-el)