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
7 SUBDIRS
= lisp contrib examples experimental texi
9 all: autoloads lisp contrib info-only
15 (cd contrib
&& $(MAKE
))
18 (cd lisp
&& $(MAKE
) autoloads
)
21 (cd examples
&& $(MAKE
))
24 (cd experimental
&& $(MAKE
))
27 (cd texi
&& $(MAKE
) info-only
)
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
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
51 (cd lisp
&& $(MAKE
) test)
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
) && \
62 cp lisp
/$(PROJECT
)-autoloads.el ..
/$(PROJECT
)-$(VERSION
)/lisp
65 (cd ..
&& tar -czf
$(PROJECT
)-$(VERSION
).
tar.gz \
66 $(PROJECT
)-$(VERSION
) ; \
67 zip
-r
$(PROJECT
)-$(VERSION
).zip
$(PROJECT
)-$(VERSION
) && \
68 gpg
--detach
$(PROJECT
)-$(VERSION
).
tar.gz
&& \
69 gpg
--detach
$(PROJECT
)-$(VERSION
).zip
)
72 -rm -f ..
/..
/dist/$(DISTRIBUTOR
)/$(DEBNAME
)_
*
73 -rm -fr ..
/$(DEBNAME
)_
$(VERSION
)*
76 -rm -rf ..
/$(DEBNAME
)-$(VERSION
)
77 (cd ..
&& tar -xzf
$(PROJECT
)-$(VERSION
).
tar.gz
)
78 mv ..
/$(PROJECT
)-$(VERSION
) ..
/$(DEBNAME
)-$(VERSION
)
79 (cd ..
&& tar -czf
$(DEBNAME
)_
$(VERSION
).orig.
tar.gz \
80 $(DEBNAME
)-$(VERSION
))
81 (cd debian
&& tla inventory
-sB |
tar -cf
- --no-recursion
-T- | \
82 (mkdir
-p ..
/..
/$(DEBNAME
)-$(VERSION
)/debian
; \
83 cd ..
/..
/$(DEBNAME
)-$(VERSION
)/debian
&& \
87 (cd ..
/$(DEBNAME
)-$(VERSION
) && \
88 dpkg-buildpackage
-v
$(LASTUPLOAD
) $(BUILDOPTS
) \
89 -us
-uc
-rfakeroot
&& \
90 echo
"Running lintian ..." && \
91 lintian
-i ..
/$(DEBNAME
)_
$(VERSION
)*.deb ||
: && \
92 echo
"Done running lintian." && \
93 echo
"Running linda ..." && \
94 linda
-i ..
/$(DEBNAME
)_
$(VERSION
)*.deb ||
: && \
95 echo
"Done running linda." && \
99 cp ..
/$(DEBNAME
)_
$(VERSION
)* ..
/..
/dist/$(DISTRIBUTOR
)
101 deb
: debclean debprepare debbuild debinstall
105 scp
$(PROJECT
)-$(VERSION
).zip
* $(PROJECT
)-$(VERSION
).
tar.gz
* \
106 mwolson@download.gna.org
:/upload
/muse-el
)