source: trunk/third/m4/Makefile.in @ 13409

Revision 13409, 3.9 KB checked in by ghudson, 26 years ago (diff)
Nuke rules to rebuild shipped files. Fix a suspicious line.
Line 
1# Main Makefile for GNU m4.
2# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
3
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)
7# any later version.
8
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.
13
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.
17
18PRODUCT = @PRODUCT@
19VERSION = @VERSION@
20
21SHELL = /bin/sh
22srcdir = @srcdir@
23VPATH = @srcdir@
24@SET_MAKE@
25
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.
32
33CC = @CC@
34CFLAGS = @CFLAGS@
35INSTALL = @INSTALL@
36INSTALL_DATA = @INSTALL_DATA@
37INSTALL_PROGRAM = @INSTALL_PROGRAM@
38LDFLAGS = @LDFLAGS@
39LIBS = @LIBS@
40
41prefix = @prefix@
42exec_prefix = @exec_prefix@
43bindir = $(exec_prefix)/bin
44infodir = $(prefix)/info
45
46MDEFINES = CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
47prefix='$(prefix)' exec_prefix='$(exec_prefix)' \
48bindir='$(bindir)' infodir='$(infodir)'
49
50SUBDIRS = doc lib src checks examples
51
52DISTFILES = README NEWS TODO THANKS COPYING INSTALL ChangeLog c-boxes.el \
53configure.in acconfig.h aclocal.m4 mkinstalldirs install-sh Makefile.in \
54stamp-h.in config.h.in configure BACKLOG
55
56.SUFFIXES:
57
58all install uninstall: config.h
59        for subdir in $(SUBDIRS); do \
60          echo making $@ in $$subdir; \
61          (cd $$subdir && $(MAKE) $(MDEFINES) $@) || exit 1; \
62        done
63
64info dvi:
65        cd doc && $(MAKE) $@
66
67check: all
68        cd checks && $(MAKE) $@
69
70tags:
71        cd lib && $(MAKE) $@
72        cd src && $(MAKE) $@
73
74mostlyclean: mostlyclean-recursive mostlyclean-local
75
76clean: clean-recursive clean-local
77
78distclean: distclean-recursive distclean-local
79        rm config.status
80
81realclean: realclean-recursive realclean-local
82        rm config.status
83
84mostlyclean-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; \
89        done
90
91mostlyclean-local:
92
93clean-local: mostlyclean-local
94
95distclean-local: clean-local
96        rm -f Makefile config.cache config.h config.log stamp-h
97
98realclean-local: distclean-local
99
100dist: $(DISTFILES)
101        rm -rf $(PRODUCT)-$(VERSION)
102        mkdir $(PRODUCT)-$(VERSION)
103        chmod 777 $(PRODUCT)-$(VERSION)
104        @echo "Copying distribution files"
105        @for file in $(DISTFILES); do \
106          ln $(srcdir)/$$file $(PRODUCT)-$(VERSION) 2> /dev/null \
107            || cp -p $(srcdir)/$$file $(PRODUCT)-$(VERSION); \
108        done
109        for subdir in $(SUBDIRS); do \
110          echo making $@ in $$subdir; \
111          mkdir $(PRODUCT)-$(VERSION)/$$subdir; \
112          chmod 777 $(PRODUCT)-$(VERSION)/$$subdir; \
113          (cd $$subdir && $(MAKE) $@) || exit 1; \
114        done
115        chmod -R a+r $(PRODUCT)-$(VERSION)
116        tar chozf $(PRODUCT)-$(VERSION).tar.gz $(PRODUCT)-$(VERSION)
117        rm -rf $(PRODUCT)-$(VERSION)
118
119# For an explanation of the following Makefile rules, see node
120# `Automatic Remaking' in GNU Autoconf documentation.
121Makefile: Makefile.in config.status
122        CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
123config.status: configure
124        ./config.status --recheck
125
126config.h: stamp-h
127stamp-h: config.h.in config.status
128        CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status
129
130# Tell versions [3.59,3.63) of GNU make not to export all variables.
131# Otherwise a system limit (for SysV at least) may be exceeded.
132.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.