aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: ff81fa5af29b64539b1e2c34581ace97ec561070 (plain)
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
#
# Redirecting Makefile.
#   Copyright (C) 2002 Free Software Foundation
#
# This file 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 of the License, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


# This Makefile is a red herring.  It is not normally used and it is never
# written by 'configure' from 'Makefile.in'.  This Makefile is here to
# support users who try to configure/build in the source directory.  It
# simply chdir's into a subdirectory created by configure and reinvokes
# make.  Few targets are listed because advanced users (who would use those
# targets) are assumed to know that a separate build dir is recommended.

SHELL = /bin/sh

# Additional pass-through targets can be listed here.
TARGETS=bootstrap \
        clean \
        install

all:
.PHONY: sanitycheck

distclean:
	test -f s-buildd || exit 0 &&  \
	  . ./s-buildd && rm -rf $${builddir} s-buildd

sanitycheck:
	@if test ! -f s-buildd; then  \
	  echo 'You must configure before attempting to build.';  \
	  echo 'Please read the instructions in the INSTALL directory.';  \
	  exit 1;  \
	fi

$(TARGETS): sanitycheck
	(. ./s-buildd; cd $${builddir}; ${MAKE} $@)

all: sanitycheck
	(. ./s-buildd; cd $${builddir}; ${MAKE} $${defaulttarget})