1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
@SET_MAKE@
# location of required programms
BZR = bzr --no-plugins
MKDIR = @MKDIR@
TAR = @TAR@
RM = @RM@
XARGS = @XARGS@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
prefix = @prefix@
srcdir = @srcdir@
datarootdir = @datarootdir@
docdir = @docdir@
SUBDIRS = lisp info src pixmaps
# the list of source (documentation) files
SOURCES = NEWS
SOURCES += CHANGES
SOURCES += README
SOURCES += TODO
SOURCES += example.vm
##############################################################################
.PHONY: all install clean distclean
all: vm-load.el
@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i) || exit 1; done
Makefile vm-load.el: %: config.status @srcdir@/%.in
./config.status $@
@srcdir@/configure: @srcdir@/configure.ac
cd @srcdir@ ; autoconf
./config.status --recheck
config.status: @srcdir@/configure
./config.status --recheck
install: install-pkg
@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i install) || exit 1; done
install-pkg:
$(MKDIR) -p "$(DESTDIR)$(docdir)"
for i in $(SOURCES) ; do \
echo "Installing $$i in '$(DESTDIR)$(docdir)'" ; \
$(INSTALL_DATA) $$i "$(DESTDIR)$(docdir)" ; \
done ;
clean:
@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i clean) || exit 1; done
distclean:
@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i distclean) || exit 1; done
push:
$(BZR) push
##############################################################################
PKGDIR = $(shell pwd)/,,package/
PKGINFO = $(PKGDIR)/lisp/vm/_pkg.el
xemacs-package:
if [ "x@EMACS_FLAVOR@" != "xxemacs" ]; then \
echo "ERROR: Current build dir not configured for XEmacs,"; \
echo "ERROR: Please re-run configure with --with-emacs=xemacs."; \
exit 1; \
fi
-$(RM) -rf ,,package
cd lisp; make PACKAGEDIR=$(PKGDIR)/lisp/vm install-pkg
cd info; make infodir=$(PKGDIR)/info install-pkg
cd src; make infodir=$(PKGDIR)/bin install-pkg
echo ";;;###autoload" > $(PKGINFO)
echo "(package-provide 'vm'" > $(PKGINFO)
echo " :version 0.7" >> $(PKGINFO)
echo ' :author-version "'`$(BZR) revno "@top_srcdir@"`'"' >> $(PKGINFO)
echo " :type 'regular)" >> $(PKGINFO)
mkdir $(PKGDIR)/pkginfo;
touch $(PKGDIR)/pkginfo/MANIFEST.vm;
cd $(PKGDIR); find -type f | cut -c3- > pkginfo/MANIFEST.vm
cd ,,package; $(TAR) -cvzf ../vm-pkg.tar.gz *
##############################################################################
release::
./release.sh
snapshot::
./release.sh snapshot
tags::
etags lisp/*.el contrib/*.el info/*.texinfo NEWS example.vm INSTALL Makefile.in lisp/Makefile.in info/Makefile.in src/Makefile.in pixmaps/Makefile.in
|