~ubuntu-branches/ubuntu/precise/wget/precise-proposed

« back to all changes in this revision

Viewing changes to GNUmakefile

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-10-19 00:00:09 UTC
  • mfrom: (2.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20111019000009-8p33w3wz4b1rdri0
Tags: 1.13-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add wget-udeb to ship wget.gnu as alternative to busybox wget
    implementation.
  - Depend on libssl-dev 0.9.8k-7ubuntu4 (LP: #503339)
* Dropped changes, superseded in Debian:
  - Keep build dependencies in main:
    + debian/control: remove info2man build-dep
    + debian/patches/series: disable wget-infopod_generated_manpage
  - Mark wget Multi-Arch: foreign, so packages that aren't of the same arch
    can depend on it.
* Pass --with-ssl=openssl; we don't want to use gnutls, there's no udeb for
  it.
* Add a second build pass for the udeb, so we can build without libidn.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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-2009 Free Software Foundation, Inc.
 
8
# Copyright (C) 2001, 2003, 2006-2011 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
49
49
 
50
50
# Allow cfg.mk to override these.
51
51
_build-aux ?= build-aux
52
 
_autoreconf ?= autoreconf
 
52
_autoreconf ?= autoreconf -v
53
53
 
54
54
# Ensure that $(VERSION) is up to date for dist-related targets, but not
55
55
# for others: rerunning autoreconf and recompiling everything isn't cheap.
57
57
  $(shell test -f $(srcdir)/$(_build-aux)/git-version-gen && echo yes)
58
58
ifeq ($(_have-git-version-gen)0,yes$(MAKELEVEL))
59
59
  _is-dist-target ?= $(filter-out %clean, \
60
 
    $(filter maintainer-% dist% alpha beta major,$(MAKECMDGOALS)))
 
60
    $(filter maintainer-% dist% alpha beta stable,$(MAKECMDGOALS)))
61
61
  _is-install-target ?= $(filter-out %check, $(filter install%,$(MAKECMDGOALS)))
62
62
  ifneq (,$(_is-dist-target)$(_is-install-target))
63
 
    _curr-ver := $(shell cd $(srcdir) \
64
 
                   && $(_build-aux)/git-version-gen .tarball-version)
 
63
    _curr-ver := $(shell cd $(srcdir)                           \
 
64
                   && $(_build-aux)/git-version-gen             \
 
65
                         .tarball-version                       \
 
66
                         $(git-version-gen-tag-sed-script))
65
67
    ifneq ($(_curr-ver),$(VERSION))
66
68
      ifeq ($(_curr-ver),UNKNOWN)
67
69
        $(info WARNING: unable to verify if $(VERSION) is the correct version)
78
80
          $(info run '$(MAKE) _version' to fix it)
79
81
        else
80
82
          $(info INFO: running autoreconf for new version string: $(_curr-ver))
81
 
          _dummy := $(shell $(MAKE) $(AM_MAKEFLAGS) _version)
 
83
GNUmakefile: _version
 
84
        touch GNUmakefile
82
85
        endif
83
86
      endif
84
87
    endif
88
91
.PHONY: _version
89
92
_version:
90
93
        cd $(srcdir) && rm -rf autom4te.cache .version && $(_autoreconf)
 
94
        $(MAKE) $(AM_MAKEFLAGS) Makefile
91
95
 
92
96
else
93
97