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
8 SUBDIRS
= lisp contrib examples experimental
10 all: autoloads lisp contrib
$(MANUAL
).
info
16 (cd contrib
&& $(MAKE
))
19 (cd lisp
&& $(MAKE
) autoloads
)
22 (cd examples
&& $(MAKE
))
25 (cd experimental
&& $(MAKE
))
31 makeinfo --html
--no-split
$<
33 doc
: $(MANUAL
).
info $(MANUAL
).html
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
57 (cd lisp
&& $(MAKE
) test)
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
) && \
69 cp lisp
/$(PROJECT
)-autoloads.el ..
/$(PROJECT
)-$(VERSION
)/lisp
70 rm -fr ..
/$(PROJECT
)-$(VERSION
)/debian
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
)
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." && \
87 cp ..
/$(DEBNAME
)_
$(VERSION
)* ..
/..
/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
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
111 scp
$(PROJECT
)-$(VERSION
).zip
* $(PROJECT
)-$(VERSION
).
tar.gz
* \
112 mwolson@download.gna.org
:/upload
/muse-el
)