Merged from mwolson@gnu.org--2006/muse--main--1.0 (patch 308-311)
[muse-el.git] / Makefile
blobadb9f6c44e983b56a0b2d9afd62abdfad44fb7d7
1 .PHONY: all lisp contrib autoloads examples experimental doc info-only
2 .PHONY: clean realclean distclean fullclean install-info install-bin install
3 .PHONY: test dist release debbuild debrevision debrelease upload
5 include Makefile.defs
7 SUBDIRS = lisp contrib examples experimental texi
9 all: autoloads lisp contrib info-only
11 lisp:
12 (cd lisp && $(MAKE))
14 contrib:
15 (cd contrib && $(MAKE))
17 autoloads:
18 (cd lisp && $(MAKE) autoloads)
20 examples:
21 (cd examples && $(MAKE))
23 experimental:
24 (cd experimental && $(MAKE))
26 info-only:
27 (cd texi && $(MAKE) info-only)
29 doc texi:
30 (cd texi && $(MAKE))
32 clean:
33 for i in $(SUBDIRS); do \
34 (cd $$i && $(MAKE) clean); done
36 realclean fullclean: clean
37 for i in $(SUBDIRS); do \
38 (cd $$i && $(MAKE) realclean); done
40 install-info: $(MANUAL).info
41 (cd texi && $(MAKE) install)
43 install-bin: autoloads lisp contrib
44 (cd lisp && $(MAKE) install)
45 (cd contrib && $(MAKE) install)
46 (cd experimental && $(MAKE) install-uncompiled)
48 install: install-bin install-info
50 test:
51 (cd lisp && $(MAKE) test)
53 distclean:
54 for i in $(SUBDIRS); do \
55 (cd $$i && $(MAKE) distclean); done
56 -rm -fr ../$(PROJECT)-$(VERSION)
58 dist: autoloads distclean
59 tla inventory -sB | tar -cf - --no-recursion -T- | \
60 (mkdir -p ../$(PROJECT)-$(VERSION); cd ../$(PROJECT)-$(VERSION) && \
61 tar xf -)
62 cp lisp/$(PROJECT)-autoloads.el ../$(PROJECT)-$(VERSION)/lisp
63 rm -fr ../$(PROJECT)-$(VERSION)/debian
65 release: dist
66 (cd .. && tar -czf $(PROJECT)-$(VERSION).tar.gz \
67 $(PROJECT)-$(VERSION) ; \
68 zip -r $(PROJECT)-$(VERSION).zip $(PROJECT)-$(VERSION) && \
69 gpg --detach $(PROJECT)-$(VERSION).tar.gz && \
70 gpg --detach $(PROJECT)-$(VERSION).zip)
72 debbuild:
73 (cd ../$(DEBNAME)-$(VERSION) && \
74 dpkg-buildpackage -v$(LASTUPLOAD) $(BUILDOPTS) \
75 -us -uc -rfakeroot && \
76 echo "Running lintian ..." && \
77 lintian -i ../$(DEBNAME)_$(VERSION)*.deb || : && \
78 echo "Done running lintian." && \
79 debsign)
80 cp ../$(DEBNAME)_$(VERSION)* ../../dist/$(DISTRIBUTOR)
82 debclean:
83 -rm -f ../../dist/$(DISTRIBUTOR)/$(DEBNAME)_*
84 -rm -fr ../$(DEBNAME)-$(VERSION)
86 debrevision: debclean dist
87 -rm -f ../$(DEBNAME)_$(VERSION)-*
88 mv ../$(PROJECT)-$(VERSION) ../$(DEBNAME)-$(VERSION)
89 cp -r debian ../$(DEBNAME)-$(VERSION)
90 -rm -fr ../$(DEBNAME)-$(VERSION)/debian/.arch-ids
91 $(MAKE) debbuild
93 debrelease: debclean dist
94 -rm -f ../$(DEBNAME)_$(VERSION)*
95 mv ../$(PROJECT)-$(VERSION) ../$(DEBNAME)-$(VERSION)
96 (cd .. && tar -czf $(DEBNAME)_$(VERSION).orig.tar.gz \
97 $(DEBNAME)-$(VERSION))
98 cp -r debian ../$(DEBNAME)-$(VERSION)
99 -rm -fr ../$(DEBNAME)-$(VERSION)/debian/.arch-ids
100 $(MAKE) debbuild
102 upload: release
103 (cd .. && \
104 scp $(PROJECT)-$(VERSION).zip* $(PROJECT)-$(VERSION).tar.gz* \
105 mwolson@download.gna.org:/upload/muse-el)