muse-html: Add muse-xhtml-extension.
[muse-el.git] / Makefile
blob499cc354a4d8cdd44c3d1753dec63204f5d32d9a
1 .PHONY: all lisp examples experimental doc clean realclean distclean fullclean 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 examples:
14 (cd examples && $(MAKE))
16 experimental:
17 (cd experimental && $(MAKE))
19 %.info: %.texi
20 makeinfo $<
22 %.html: %.texi
23 makeinfo --html --no-split $<
25 doc: muse.info muse.html
27 clean:
28 for i in $(SUBDIRS); do \
29 (cd $$i && $(MAKE) clean); done
31 realclean fullclean: clean
32 -rm -f muse.info muse.html
33 for i in $(SUBDIRS); do \
34 (cd $$i && $(MAKE) distclean); done
36 install: lisp muse.info
37 (cd lisp && $(MAKE) install)
38 install -d $(INFODIR)
39 install -m 0644 muse.info $(INFODIR)/muse
40 $(INSTALLINFO) $(INFODIR)/muse
42 test:
43 (cd lisp && $(MAKE) test)
45 distclean: realclean
46 -rm -fr ../muse-$(VERSION)
48 dist: distclean
49 tla inventory -sB | tar -cf - --no-recursion -T- | \
50 (mkdir -p ../muse-$(VERSION); cd ../muse-$(VERSION) && \
51 tar xf -)
52 rm -fr ../muse-$(VERSION)/debian
54 release: dist
55 (cd .. && tar -czf muse-$(VERSION).tar.gz muse-$(VERSION) ; \
56 zip -r muse-$(VERSION).zip muse-$(VERSION))
58 debbuild:
59 (cd ../muse-el-$(VERSION) && \
60 dpkg-buildpackage -v$(LASTUPLOAD) $(BUILDOPTS) \
61 -us -uc -rfakeroot && \
62 echo "Running lintian ..." && \
63 lintian -i ../muse-el_$(VERSION)*.deb || : && \
64 echo "Done running lintian." && \
65 debsign)
66 cp ../muse-el_$(VERSION)* ../../dist
68 debrevision: dist
69 -rm -f ../../dist/muse-el_*
70 -rm -f ../muse-el_$(VERSION)-*
71 -rm -fr ../muse-el-$(VERSION)
72 mv ../muse-$(VERSION) ../muse-el-$(VERSION)
73 cp -r debian ../muse-el-$(VERSION)
74 -rm -fr ../muse-el-$(VERSION)/debian/.arch-ids
75 $(MAKE) debbuild
77 debrelease: 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 (cd .. && tar -czf muse-el_$(VERSION).orig.tar.gz muse-el-$(VERSION))
83 cp -r debian ../muse-el-$(VERSION)
84 -rm -fr ../muse-el-$(VERSION)/debian/.arch-ids
85 $(MAKE) debbuild
87 upload: release
88 (cd .. && gpg --detach muse-$(VERSION).tar.gz && \
89 gpg --detach muse-$(VERSION).zip && \
90 scp muse-$(VERSION).zip* muse-$(VERSION).tar.gz* \
91 mwolson@download.gna.org:/upload/muse-el)