Fix bug #6399; designate this 3.02.91 (RC2).
[muse-el.git] / Makefile
blob26734a8d7e06300c44c9af6afb052c7230651721
1 .PHONY: all lisp contrib autoloads examples experimental doc clean realclean \
2 distclean fullclean install-info install-bin install test dist release \
3 debbuild debrevision debrelease upload
4 .PRECIOUS: %.info %.html
6 include Makefile.defs
8 SUBDIRS = lisp contrib examples experimental
10 all: autoloads lisp contrib $(MANUAL).info
12 lisp:
13 (cd lisp && $(MAKE))
15 contrib:
16 (cd contrib && $(MAKE))
18 autoloads:
19 (cd lisp && $(MAKE) autoloads)
21 examples:
22 (cd examples && $(MAKE))
24 experimental:
25 (cd experimental && $(MAKE))
27 %.info: %.texi
28 makeinfo $<
30 %.html: %.texi
31 makeinfo --html --no-split $<
33 doc: $(MANUAL).info $(MANUAL).html
35 clean:
36 for i in $(SUBDIRS); do \
37 (cd $$i && $(MAKE) clean); done
39 realclean fullclean: clean
40 -rm -f $(MANUAL).info $(MANUAL).html
41 for i in $(SUBDIRS); do \
42 (cd $$i && $(MAKE) distclean); done
44 install-info: $(MANUAL).info
45 [ -d $(INFODIR) ] || install -d $(INFODIR)
46 install -m 0644 $(MANUAL).info $(INFODIR)/$(MANUAL)
47 $(INSTALLINFO) $(INFODIR)/$(MANUAL)
49 install-bin: autoloads lisp contrib
50 (cd lisp && $(MAKE) install)
51 (cd contrib && $(MAKE) install)
52 (cd experimental && $(MAKE) install-uncompiled)
54 install: install-bin install-info
56 test:
57 (cd lisp && $(MAKE) test)
59 distclean: realclean
60 -rm -fr ../$(PROJECT)-$(VERSION)
62 dist: autoloads distclean
63 tla inventory -sB | tar -cf - --no-recursion -T- | \
64 (mkdir -p ../$(PROJECT)-$(VERSION); cd ../$(PROJECT)-$(VERSION) && \
65 tar xf -)
66 cp $(PROJECT)-autoloads.el ../$(PROJECT)-$(VERSION)
67 rm -fr ../$(PROJECT)-$(VERSION)/debian
69 release: dist
70 (cd .. && tar -czf $(PROJECT)-$(VERSION).tar.gz \
71 $(PROJECT)-$(VERSION) ; \
72 zip -r $(PROJECT)-$(VERSION).zip $(PROJECT)-$(VERSION) && \
73 gpg --detach $(PROJECT)-$(VERSION).tar.gz && \
74 gpg --detach $(PROJECT)-$(VERSION).zip)
76 debbuild:
77 (cd ../$(DEBNAME)-$(VERSION) && \
78 dpkg-buildpackage -v$(LASTUPLOAD) $(BUILDOPTS) \
79 -us -uc -rfakeroot && \
80 echo "Running lintian ..." && \
81 lintian -i ../$(DEBNAME)_$(VERSION)*.deb || : && \
82 echo "Done running lintian." && \
83 debsign)
84 cp ../$(DEBNAME)_$(VERSION)* ../../dist
86 debrevision: dist
87 -rm -f ../../dist/$(DEBNAME)_*
88 -rm -f ../$(DEBNAME)_$(VERSION)-*
89 -rm -fr ../$(DEBNAME)-$(VERSION)
90 mv ../$(PROJECT)-$(VERSION) ../$(DEBNAME)-$(VERSION)
91 cp -r debian ../$(DEBNAME)-$(VERSION)
92 -rm -fr ../$(DEBNAME)-$(VERSION)/debian/.arch-ids
93 $(MAKE) debbuild
95 debrelease: dist
96 -rm -f ../../dist/$(DEBNAME)_*
97 -rm -f ../$(DEBNAME)_$(VERSION)*
98 -rm -fr ../$(DEBNAME)-$(VERSION)
99 mv ../$(PROJECT)-$(VERSION) ../$(DEBNAME)-$(VERSION)
100 (cd .. && tar -czf $(DEBNAME)_$(VERSION).orig.tar.gz \
101 $(DEBNAME)-$(VERSION))
102 cp -r debian ../$(DEBNAME)-$(VERSION)
103 -rm -fr ../$(DEBNAME)-$(VERSION)/debian/.arch-ids
104 $(MAKE) debbuild
106 upload: release
107 (cd .. && \
108 scp $(PROJECT)-$(VERSION).zip* $(PROJECT)-$(VERSION).tar.gz* \
109 mwolson@download.gna.org:/upload/muse-el)