~ubuntu-branches/ubuntu/quantal/libtasn1-3/quantal

« back to all changes in this revision

Viewing changes to GNUmakefile

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2012-03-19 19:25:16 UTC
  • mfrom: (11.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20120319192516-0h8nqvuja8n5id4p
Tags: 2.12-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Having a separate GNUmakefile lets me `include' the dynamically
 
1
# Having a separate GNUmakefile lets me 'include' the dynamically
2
2
# generated rules created via cfg.mk (package-local configuration)
3
3
# as well as maint.mk (generic maintainer rules).
4
4
# This makefile is used only if you run GNU Make.
5
5
# It is necessary if you want to build targets usually of interest
6
6
# only to the maintainer.
7
7
 
8
 
# Copyright (C) 2001, 2003, 2006-2011 Free Software Foundation, Inc.
 
8
# Copyright (C) 2001, 2003, 2006-2012 Free Software Foundation, Inc.
9
9
 
10
10
# This program is free software: you can redistribute it and/or modify
11
11
# it under the terms of the GNU General Public License as published by
20
20
# You should have received a copy of the GNU General Public License
21
21
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
22
 
23
 
# Systems where /bin/sh is not the default shell need this.  The $(shell)
24
 
# command below won't work with e.g. stock DOS/Windows shells.
25
 
ifeq ($(wildcard /bin/s[h]),/bin/sh)
26
 
SHELL = /bin/sh
27
 
else
28
 
# will be used only with the next shell-test line, then overwritten
29
 
# by a configured-in value
30
 
SHELL = sh
31
 
endif
32
 
 
33
23
# If the user runs GNU make but has not yet run ./configure,
34
24
# give them a diagnostic.
35
 
_have-Makefile := $(shell test -f Makefile && echo yes)
36
 
ifeq ($(_have-Makefile),yes)
 
25
_gl-Makefile := $(wildcard [M]akefile)
 
26
ifneq ($(_gl-Makefile),)
37
27
 
38
28
# Make tar archive easier to reproduce.
39
29
export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner
45
35
 
46
36
# Some projects override e.g., _autoreconf here.
47
37
-include $(srcdir)/cfg.mk
 
38
 
 
39
# Allow cfg.mk to override these.
 
40
_build-aux ?= build-aux
 
41
_autoreconf ?= autoreconf -v
 
42
 
48
43
include $(srcdir)/maint.mk
49
44
 
50
 
# Allow cfg.mk to override these.
51
 
_build-aux ?= build-aux
52
 
_autoreconf ?= autoreconf -v
53
 
 
54
45
# Ensure that $(VERSION) is up to date for dist-related targets, but not
55
46
# for others: rerunning autoreconf and recompiling everything isn't cheap.
56
47
_have-git-version-gen := \
100
91
 
101
92
# The package can override .DEFAULT_GOAL to run actions like autoreconf.
102
93
-include ./cfg.mk
 
94
 
 
95
# Allow cfg.mk to override these.
 
96
_build-aux ?= build-aux
 
97
_autoreconf ?= autoreconf -v
 
98
 
103
99
include ./maint.mk
104
100
 
105
101
ifeq ($(.DEFAULT_GOAL),abort-due-to-no-makefile)
108
104
 
109
105
abort-due-to-no-makefile:
110
106
        @echo There seems to be no Makefile in this directory.   1>&2
111
 
        @echo "You must run ./configure before running \`make'." 1>&2
 
107
        @echo "You must run ./configure before running 'make'." 1>&2
112
108
        @exit 1
113
109
 
114
110
endif