1 # Main Makefile for GNU m4.
2 # Copyright (C) 1992, 1993, 1994, 2005 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 # This directory's subdirectories are mostly independent; you can cd
27 # into them and run `make' without going through this Makefile.
28 # To change the values of `make' variables: instead of editing Makefiles,
29 # (1) if the variable is set in `config.status', edit `config.status'
30 # (which will cause the Makefiles to be regenerated when you run `make');
31 # (2) otherwise, pass the desired values on the `make' command line.
36 INSTALL_DATA
= @INSTALL_DATA@
37 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
42 exec_prefix = @
exec_prefix@
43 bindir = $(exec_prefix)/bin
44 infodir = $(prefix)/info
46 MDEFINES
= CC
='$(CC)' CFLAGS
='$(CFLAGS)' LDFLAGS
='$(LDFLAGS)' LIBS
='$(LIBS)' \
47 prefix='$(prefix)' exec_prefix='$(exec_prefix)' \
48 bindir='$(bindir)' infodir='$(infodir)'
50 SUBDIRS
= doc lib src checks examples
52 DISTFILES
= README NEWS TODO THANKS COPYING INSTALL ChangeLog c-boxes.el \
53 configure.ac aclocal.m4 mkinstalldirs install-sh Makefile.in \
54 stamp-h.in config-h.in configure BACKLOG
58 all install uninstall: config.h
59 for subdir in
$(SUBDIRS
); do \
60 echo making
$@ in
$$subdir; \
61 (cd
$$subdir && $(MAKE
) $(MDEFINES
) $@
) || exit
1; \
68 cd checks
&& $(MAKE
) $@
74 mostlyclean: mostlyclean-recursive mostlyclean-local
76 clean: clean-recursive clean-local
78 distclean: distclean-recursive distclean-local
81 realclean: realclean-recursive realclean-local
84 mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive
:
85 for subdir in
$(SUBDIRS
); do \
86 target
=`echo $@ | sed 's/-recursive//'`; \
87 echo making
$$target in
$$subdir; \
88 (cd
$$subdir && $(MAKE
) $$target) || exit
1; \
93 clean-local
: mostlyclean-local
95 distclean-local
: clean-local
96 rm -f Makefile config.cache config.h config.log stamp-h
98 realclean-local
: distclean-local
101 rm -rf
$(PACKAGE
)-$(VERSION
)
102 mkdir
$(PACKAGE
)-$(VERSION
)
103 chmod
777 $(PACKAGE
)-$(VERSION
)
104 @echo
"Copying distribution files"
105 @for file in
$(DISTFILES
); do \
106 ln
$(srcdir)/$$file $(PACKAGE
)-$(VERSION
) 2> /dev
/null \
107 || cp
-p
$(srcdir)/$$file $(PACKAGE
)-$(VERSION
); \
109 for subdir in
$(SUBDIRS
); do \
110 echo making
$@ in
$$subdir; \
111 mkdir
$(PACKAGE
)-$(VERSION
)/$$subdir; \
112 chmod
777 $(PACKAGE
)-$(VERSION
)/$$subdir; \
113 (cd
$$subdir && $(MAKE
) $@
) || exit
1; \
115 chmod
-R a
+r
$(PACKAGE
)-$(VERSION
)
116 tar chozf
$(PACKAGE
)-$(VERSION
).
tar.gz
$(PACKAGE
)-$(VERSION
)
117 rm -rf
$(PACKAGE
)-$(VERSION
)
119 # For an explanation of the following Makefile rules, see node
120 # `Automatic Remaking' in GNU Autoconf documentation.
121 Makefile
: Makefile.in config.status
122 CONFIG_FILES
=$@ CONFIG_HEADERS
= .
/config.status
123 config.status
: configure
124 .
/config.status
--recheck
125 configure
: configure.ac aclocal.m4
126 cd
$(srcdir) && autoconf
129 stamp-h
: config-h.in config.status
130 CONFIG_FILES
= CONFIG_HEADERS
=config.h .
/config.status
131 config-h.in
: stamp-h.in
132 stamp-h.in
: configure.ac aclocal.m4
133 cd
$(srcdir) && autoheader
134 date
> $(srcdir)/stamp-h.in
136 # Tell versions [3.59,3.63) of GNU make not to export all variables.
137 # Otherwise a system limit (for SysV at least) may be exceeded.