Fix bug introduced in last patch.
[muse-el.git] / Makefile
blob836e14861987a2984bfbf33bc5f6ebd2fa6f1d50
1 .PHONY: all lisp contrib 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 contrib examples experimental
8 all: autoloads lisp contrib muse.info
10 lisp:
11 (cd lisp && $(MAKE))
13 contrib:
14 (cd contrib && $(MAKE))
16 autoloads:
17 (cd lisp && $(MAKE) autoloads)
19 examples:
20 (cd examples && $(MAKE))
22 experimental:
23 (cd experimental && $(MAKE))
25 %.info: %.texi
26 makeinfo $<
28 %.html: %.texi
29 makeinfo --html --no-split $<
31 doc: muse.info muse.html
33 clean:
34 for i in $(SUBDIRS); do \
35 (cd $$i && $(MAKE) clean); done
37 realclean fullclean: clean
38 -rm -f muse.info muse.html
39 for i in $(SUBDIRS); do \
40 (cd $$i && $(MAKE) distclean); done
42 install-info: muse.info
43 [ -d $(INFODIR) ] || install -d $(INFODIR)
44 install -m 0644 muse.info $(INFODIR)/muse
45 $(INSTALLINFO) $(INFODIR)/muse
47 install-bin: lisp contrib
48 (cd lisp && $(MAKE) install)
49 (cd contrib && $(MAKE) install)
50 (cd experimental && $(MAKE) install-uncompiled)
52 install: install-bin install-info
54 test:
55 (cd lisp && $(MAKE) test)
57 distclean: realclean
58 -rm -fr ../muse-$(VERSION)
60 dist: distclean
61 tla inventory -sB | tar -cf - --no-recursion -T- | \
62 (mkdir -p ../muse-$(VERSION); cd ../muse-$(VERSION) && \
63 tar xf -)
64 rm -fr ../muse-$(VERSION)/debian
66 release: dist
67 (cd .. && tar -czf muse-$(VERSION).tar.gz muse-$(VERSION) ; \
68 zip -r muse-$(VERSION).zip muse-$(VERSION) && \
69 gpg --detach muse-$(VERSION).tar.gz && \
70 gpg --detach muse-$(VERSION).zip)
72 debbuild:
73 (cd ../muse-el-$(VERSION) && \
74 dpkg-buildpackage -v$(LASTUPLOAD) $(BUILDOPTS) \
75 -us -uc -rfakeroot && \
76 echo "Running lintian ..." && \
77 lintian -i ../muse-el_$(VERSION)*.deb || : && \
78 echo "Done running lintian." && \
79 debsign)
80 cp ../muse-el_$(VERSION)* ../../dist
82 debrevision: dist
83 -rm -f ../../dist/muse-el_*
84 -rm -f ../muse-el_$(VERSION)-*
85 -rm -fr ../muse-el-$(VERSION)
86 mv ../muse-$(VERSION) ../muse-el-$(VERSION)
87 cp -r debian ../muse-el-$(VERSION)
88 -rm -fr ../muse-el-$(VERSION)/debian/.arch-ids
89 $(MAKE) debbuild
91 debrelease: dist
92 -rm -f ../../dist/muse-el_*
93 -rm -f ../muse-el_$(VERSION)*
94 -rm -fr ../muse-el-$(VERSION)
95 mv ../muse-$(VERSION) ../muse-el-$(VERSION)
96 (cd .. && tar -czf muse-el_$(VERSION).orig.tar.gz muse-el-$(VERSION))
97 cp -r debian ../muse-el-$(VERSION)
98 -rm -fr ../muse-el-$(VERSION)/debian/.arch-ids
99 $(MAKE) debbuild
101 upload: release
102 (cd .. && scp muse-$(VERSION).zip* muse-$(VERSION).tar.gz* \
103 mwolson@download.gna.org:/upload/muse-el)