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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
|
# Main Makefile for GNU m4.
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
PRODUCT = @PRODUCT@
VERSION = @VERSION@
SHELL = /bin/sh
srcdir = @srcdir@
VPATH = @srcdir@
@SET_MAKE@
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
CC = @CC@
CFLAGS = @CFLAGS@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
infodir = $(prefix)/info
MDEFINES = CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
prefix='$(prefix)' exec_prefix='$(exec_prefix)' \
bindir='$(bindir)' infodir='$(infodir)'
SUBDIRS = doc lib src checks examples
DISTFILES = README NEWS TODO THANKS COPYING INSTALL ChangeLog c-boxes.el \
configure.in acconfig.h aclocal.m4 mkinstalldirs install-sh Makefile.in \
stamp-h.in config.h.in configure BACKLOG
.SUFFIXES:
all install uninstall: config.h
for subdir in $(SUBDIRS); do \
echo making $@ in $$subdir; \
(cd $$subdir && $(MAKE) $(MDEFINES) $@) || exit 1; \
done
info dvi:
cd doc && $(MAKE) $@
check: all
cd checks && $(MAKE) $@
tags:
cd lib && $(MAKE) $@
cd src && $(MAKE) $@
mostlyclean: mostlyclean-recursive mostlyclean-local
clean: clean-recursive clean-local
distclean: distclean-recursive distclean-local
rm config.status
realclean: realclean-recursive realclean-local
rm config.status
mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive:
for subdir in $(SUBDIRS); do \
target=`echo $@ | sed 's/-recursive//'`; \
echo making $$target in $$subdir; \
(cd $$subdir && $(MAKE) $$target) || exit 1; \
done
mostlyclean-local:
clean-local: mostlyclean-local
distclean-local: clean-local
rm -f Makefile config.cache config.h config.log stamp-h
realclean-local: distclean-local
dist: $(DISTFILES)
rm -rf $(PRODUCT)-$(VERSION)
mkdir $(PRODUCT)-$(VERSION)
chmod 777 $(PRODUCT)-$(VERSION)
@echo "Copying distribution files"
@for file in $(DISTFILES); do \
ln $(srcdir)/$$file $(PRODUCT)-$(VERSION) 2> /dev/null \
|| cp -p $(srcdir)/$$file $(PRODUCT)-$(VERSION); \
done
for subdir in $(SUBDIRS); do \
echo making $@ in $$subdir; \
mkdir $(PRODUCT)-$(VERSION)/$$subdir; \
chmod 777 $(PRODUCT)-$(VERSION)/$$subdir; \
(cd $$subdir && $(MAKE) $@) || exit 1; \
done
chmod -R a+r $(PRODUCT)-$(VERSION)
tar chozf $(PRODUCT)-$(VERSION).tar.gz $(PRODUCT)-$(VERSION)
rm -rf $(PRODUCT)-$(VERSION)
# For an explanation of the following Makefile rules, see node
# `Automatic Remaking' in GNU Autoconf documentation.
Makefile: Makefile.in config.status
CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
config.status: configure
./config.status --recheck
configure: configure.in aclocal.m4
cd $(srcdir) && autoconf
config.h: stamp-h
stamp-h: config.h.in config.status
CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status
config.h.in: stamp-h.in
stamp-h.in: configure.in aclocal.m4 acconfig.h
cd $(srcdir) && autoheader
date > $(srcdir)/stamp-h.in
# Tell versions [3.59,3.63) of GNU make not to export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
|