3
# location of required programms
11
SUBDIRS = lisp info src
13
##############################################################################
15
@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i); done
17
Makefile: config.status @srcdir@/Makefile.in
20
@srcdir@/configure: @srcdir@/configure.ac
21
cd @srcdir@ ; autoconf
22
./config.status --recheck
24
config.status: @srcdir@/configure
25
./config.status --recheck
28
@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i install); done
31
@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i clean); done
34
@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i distclean); done
36
##############################################################################
37
# TODO creation of a XEmacs package
38
PKGDIR = $(shell pwd)/,,package/
39
PKGINFO = $(PKGDIR)/lisp/vm/_pkg.el
41
if [ "x@EMACS_FLAVOR@" != "xxemacs" ]; then \
42
echo "ERROR: Current build dir not configured for XEmacs,"; \
43
echo "ERROR: Please re-run configure with --with-emacs=xemacs."; \
47
cd lisp; make PACKAGEDIR=$(PKGDIR)/lisp/vm install-pkg
48
cd info; make info_dir=$(PKGDIR)/info install-pkg
49
cd src; make info_dir=$(PKGDIR)/bin install-pkg
50
echo ";;;###autoload" > $(PKGINFO)
51
echo "(package-provide 'vm'" > $(PKGINFO)
52
echo " :version 0.7" >> $(PKGINFO)
53
echo ' :author-version "'`$(BZR) revno "@top_srcdir@"`'"' >> $(PKGINFO)
54
echo " :type 'regular)" >> $(PKGINFO)
55
mkdir $(PKGDIR)/pkginfo;
56
touch $(PKGDIR)/pkginfo/MANIFEST.vm;
57
cd $(PKGDIR); find -type f | cut -c3- > pkginfo/MANIFEST.vm
58
cd ,,package; $(TAR) -cvzf ../vm-pkg.tar.gz *