~ubuntu-branches/ubuntu/karmic/unifdef/karmic

« back to all changes in this revision

Viewing changes to GNUmakefile

  • Committer: Bazaar Package Importer
  • Author(s): Bob Proulx
  • Date: 2003-02-26 10:49:15 UTC
  • Revision ID: james.westby@ubuntu.com-20030226104915-z4jq8masbr63gsnp
Tags: 1.0-1
Initial Release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This makefile is used only if you run GNU Make.
 
2
# This provides a convenience of automatically running configure
 
3
# if it has not previously been run.
 
4
 
 
5
# Systems where /bin/sh is not the default shell need this.  The $(shell)
 
6
# command below won't work with e.g. stock DOS/Windows shells.
 
7
SHELL = /bin/sh
 
8
 
 
9
have-Makefile := $(shell test -f Makefile && echo yes)
 
10
have-configure := $(shell test -f configure && echo yes)
 
11
 
 
12
# If the user runs GNU make but has not yet run ./configure,
 
13
# give them a diagnostic.
 
14
ifeq ($(have-Makefile),yes)
 
15
 
 
16
include Makefile
 
17
 
 
18
else
 
19
 
 
20
ifeq ($(have-configure),yes)
 
21
 
 
22
all:
 
23
        @echo "There seems to be no Makefile in this directory."
 
24
        @echo "Running ./configure before running 'make'."
 
25
        sh ./configure
 
26
        @$(MAKE)
 
27
 
 
28
else
 
29
 
 
30
all:
 
31
        @echo "There seems to be no Makefile in this directory."
 
32
        @echo "There seems to be no configure script in this directory."
 
33
        @echo "Running 'autoreconf' to generate the configure script."
 
34
        autoreconf --install
 
35
        @$(MAKE)
 
36
 
 
37
endif
 
38
 
 
39
endif
 
40
 
 
41
# Tell version 3.79 and up of GNU make to not build goals in this
 
42
# directory in parallel.  This is necessary in case someone tries to
 
43
# build multiple targets on one command line.
 
44
.NOTPARALLEL: