muse-latex: Use simpler comment syntax
[muse-el.git] / Makefile
blob3834dbcf694f6fc5b602f996c397a9ce745712e9
1 .PHONY: all lisp contrib autoloads examples experimental doc clean realclean
2 .PHONY: distclean fullclean install-info install-bin install test dist release
3 .PHONY: 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) realclean); 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:
60 -rm -f $(MANUAL).info $(MANUAL).html
61 for i in $(SUBDIRS); do \
62 (cd $$i && $(MAKE) distclean); done
63 -rm -fr ../$(PROJECT)-$(VERSION)
65 dist: autoloads distclean
66 tla inventory -sB | tar -cf - --no-recursion -T- | \
67 (mkdir -p ../$(PROJECT)-$(VERSION); cd ../$(PROJECT)-$(VERSION) && \
68 tar xf -)
69 cp lisp/$(PROJECT)-autoloads.el ../$(PROJECT)-$(VERSION)/lisp
70 rm -fr ../$(PROJECT)-$(VERSION)/debian
72 release: dist
73 (cd .. && tar -czf $(PROJECT)-$(VERSION).tar.gz \
74 $(PROJECT)-$(VERSION) ; \
75 zip -r $(PROJECT)-$(VERSION).zip $(PROJECT)-$(VERSION) && \
76 gpg --detach $(PROJECT)-$(VERSION).tar.gz && \
77 gpg --detach $(PROJECT)-$(VERSION).zip)
79 debbuild:
80 (cd ../$(DEBNAME)-$(VERSION) && \
81 dpkg-buildpackage -v$(LASTUPLOAD) $(BUILDOPTS) \
82 -us -uc -rfakeroot && \
83 echo "Running lintian ..." && \
84 lintian -i ../$(DEBNAME)_$(VERSION)*.deb || : && \
85 echo "Done running lintian." && \
86 debsign)
87 cp ../$(DEBNAME)_$(VERSION)* ../../dist
89 debrevision: dist
90 -rm -f ../../dist/$(DEBNAME)_*
91 -rm -f ../$(DEBNAME)_$(VERSION)-*
92 -rm -fr ../$(DEBNAME)-$(VERSION)
93 mv ../$(PROJECT)-$(VERSION) ../$(DEBNAME)-$(VERSION)
94 cp -r debian ../$(DEBNAME)-$(VERSION)
95 -rm -fr ../$(DEBNAME)-$(VERSION)/debian/.arch-ids
96 $(MAKE) debbuild
98 debrelease: dist
99 -rm -f ../../dist/$(DEBNAME)_*
100 -rm -f ../$(DEBNAME)_$(VERSION)*
101 -rm -fr ../$(DEBNAME)-$(VERSION)
102 mv ../$(PROJECT)-$(VERSION) ../$(DEBNAME)-$(VERSION)
103 (cd .. && tar -czf $(DEBNAME)_$(VERSION).orig.tar.gz \
104 $(DEBNAME)-$(VERSION))
105 cp -r debian ../$(DEBNAME)-$(VERSION)
106 -rm -fr ../$(DEBNAME)-$(VERSION)/debian/.arch-ids
107 $(MAKE) debbuild
109 upload: release
110 (cd .. && \
111 scp $(PROJECT)-$(VERSION).zip* $(PROJECT)-$(VERSION).tar.gz* \
112 mwolson@download.gna.org:/upload/muse-el)