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
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
) 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
57 (cd lisp
&& $(MAKE
) test)
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
) && \
66 cp
$(PROJECT
)-autoloads.el ..
/$(PROJECT
)-$(VERSION
)
67 rm -fr ..
/$(PROJECT
)-$(VERSION
)/debian
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
)
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." && \
84 cp ..
/$(DEBNAME
)_
$(VERSION
)* ..
/..
/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
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
108 scp
$(PROJECT
)-$(VERSION
).zip
* $(PROJECT
)-$(VERSION
).
tar.gz
* \
109 mwolson@download.gna.org
:/upload
/muse-el
)