~vm/vm/message

289 by Robert Widhopf-Fenk
Reorganized the VM source tree and added a configure script.
1
@SET_MAKE@
2
3
# location of required programms
4
BZR = bzr
5
TAR = @TAR@
6
RM   = @RM@
7
XARGS = @XARGS@
8
prefix = @prefix@
9
INSTALL = @INSTALL@
10
346.1.9 by Robert Widhopf-Fenk
Implemented proper "make install".
11
SUBDIRS = lisp info src pixmaps
289 by Robert Widhopf-Fenk
Reorganized the VM source tree and added a configure script.
12
13
##############################################################################
14
all:
15
	@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i); done
16
17
Makefile: config.status @srcdir@/Makefile.in
18
	./config.status $@
19
20
@srcdir@/configure: @srcdir@/configure.ac
21
	cd @srcdir@ ; autoconf
22
	./config.status --recheck
23
24
config.status: @srcdir@/configure
25
	./config.status --recheck
26
27
install:
28
	@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i install); done
29
30
clean:
31
	@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i clean); done
32
33
distclean:
34
	@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i distclean); done
35
300 by Robert Widhopf-Fenk
Added "push" and "dist" targets to Makefile.
36
push:
37
	bzr --no-plugins push
38
289 by Robert Widhopf-Fenk
Reorganized the VM source tree and added a configure script.
39
##############################################################################
40
PKGDIR =  $(shell pwd)/,,package/
41
PKGINFO = $(PKGDIR)/lisp/vm/_pkg.el
42
xemacs-package:
43
	if [ "x@EMACS_FLAVOR@" != "xxemacs" ]; then \
44
	  echo "ERROR: Current build dir not configured for XEmacs,"; \
45
	  echo "ERROR: Please re-run configure with --with-emacs=xemacs."; \
46
	  exit 1; \
47
	fi
48
	-$(RM) -rf ,,package
49
	cd lisp; make PACKAGEDIR=$(PKGDIR)/lisp/vm install-pkg
50
	cd info; make info_dir=$(PKGDIR)/info install-pkg
51
	cd src; make info_dir=$(PKGDIR)/bin install-pkg
52
	echo ";;;###autoload" > $(PKGINFO)
53
	echo "(package-provide 'vm'" > $(PKGINFO)
54
	echo "         :version 0.7" >> $(PKGINFO)
55
	echo '         :author-version "'`$(BZR) revno "@top_srcdir@"`'"' >> $(PKGINFO)
56
	echo "         :type 'regular)" >> $(PKGINFO)
57
	mkdir $(PKGDIR)/pkginfo;
58
	touch $(PKGDIR)/pkginfo/MANIFEST.vm;
59
	cd $(PKGDIR); find -type f | cut -c3- > pkginfo/MANIFEST.vm
60
	cd ,,package; $(TAR) -cvzf ../vm-pkg.tar.gz *
340 by Robert Widhopf-Fenk
Added a script to create a release bundle.
61
62
##############################################################################
350 by Robert Widhopf-Fenk
Removed done TODO markers.
63
release::
64
	./release.sh
340 by Robert Widhopf-Fenk
Added a script to create a release bundle.
65
355 by Robert Widhopf-Fenk
Added snapshot tag and creation of "id" file.
66
snapshot::
67
	./release.sh snapshot