~ubuntu-branches/ubuntu/lucid/autoconf/lucid

« back to all changes in this revision

Viewing changes to bin/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Ben Pfaff
  • Date: 2002-03-27 21:52:33 UTC
  • Revision ID: james.westby@ubuntu.com-20020327215233-r3gmxall0x27s306
Tags: upstream-2.53
ImportĀ upstreamĀ versionĀ 2.53

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Process this file with automake to create Makefile.in. -*-Makefile-*-
 
2
 
 
3
## Makefile for Autoconf.
 
4
## Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
 
5
 
 
6
## This program is free software; you can redistribute it and/or modify
 
7
## it under the terms of the GNU General Public License as published by
 
8
## the Free Software Foundation; either version 2, or (at your option)
 
9
## any later version.
 
10
 
 
11
## This program is distributed in the hope that it will be useful,
 
12
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
## GNU General Public License for more details.
 
15
 
 
16
## You should have received a copy of the GNU General Public License
 
17
## along with this program; if not, write to the Free Software
 
18
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
19
## 02111-1307, USA.
 
20
 
 
21
bin_SCRIPTS = autom4te \
 
22
              autoconf autoheader autoreconf ifnames autoscan autoupdate
 
23
 
 
24
EXTRA_DIST = autoconf.in autoheader.in autoreconf.in autoupdate.in ifnames.in \
 
25
             autoscan.in autom4te.in
 
26
 
 
27
# Files that should be removed, but which Automake does not know.
 
28
CLEANFILES = $(bin_SCRIPTS)
 
29
 
 
30
 
 
31
## ------------- ##
 
32
## The scripts.  ##
 
33
## ------------- ##
 
34
 
 
35
edit = sed \
 
36
        -e 's,@SHELL\@,$(SHELL),g' \
 
37
        -e 's,@PERL\@,$(PERL),g' \
 
38
        -e 's,@bindir\@,$(bindir),g' \
 
39
        -e 's,@datadir\@,$(pkgdatadir),g' \
 
40
        -e 's,@prefix\@,$(prefix),g' \
 
41
        -e 's,@autoconf-name\@,'`echo autoconf | sed '$(transform)'`',g' \
 
42
        -e 's,@autoheader-name\@,'`echo autoheader | sed '$(transform)'`',g' \
 
43
        -e 's,@autom4te-name\@,'`echo autom4te | sed '$(transform)'`',g' \
 
44
        -e 's,@M4\@,$(M4),g' \
 
45
        -e 's,@AWK\@,$(AWK),g' \
 
46
        -e 's,@VERSION\@,$(VERSION),g' \
 
47
        -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g'
 
48
 
 
49
## All the files below depend on configure.ac so that they are rebuilt
 
50
## when the Autoconf version changes. Unfortunately, suffix rules cannot
 
51
## have additional dependencies, so we have to use explicit rules.
 
52
 
 
53
autoconf: $(srcdir)/autoconf.in $(top_srcdir)/configure.ac
 
54
        rm -f autoconf autoconf.tmp
 
55
        $(edit) $(srcdir)/autoconf.in >autoconf.tmp
 
56
        chmod +x autoconf.tmp
 
57
        mv autoconf.tmp autoconf
 
58
 
 
59
autoheader: $(srcdir)/autoheader.in $(top_srcdir)/configure.ac
 
60
        rm -f autoheader autoheader.tmp
 
61
        $(edit) $(srcdir)/autoheader.in >autoheader.tmp
 
62
        chmod +x autoheader.tmp
 
63
        mv autoheader.tmp autoheader
 
64
 
 
65
autoreconf: $(srcdir)/autoreconf.in $(top_srcdir)/configure.ac
 
66
        rm -f autoreconf autoreconf.tmp
 
67
        $(edit) $(srcdir)/autoreconf.in >autoreconf.tmp
 
68
        chmod +x autoreconf.tmp
 
69
        mv autoreconf.tmp autoreconf
 
70
 
 
71
autoupdate: $(srcdir)/autoupdate.in $(top_srcdir)/configure.ac
 
72
        rm -f autoupdate autoupdate.tmp
 
73
        $(edit) $(srcdir)/autoupdate.in >autoupdate.tmp
 
74
        chmod +x autoupdate.tmp
 
75
        mv autoupdate.tmp autoupdate
 
76
 
 
77
ifnames: $(srcdir)/ifnames.in $(top_srcdir)/configure.ac
 
78
        rm -f ifnames ifnames.tmp
 
79
        $(edit) $(srcdir)/ifnames.in >ifnames.tmp
 
80
        chmod +x ifnames.tmp
 
81
        mv ifnames.tmp ifnames
 
82
 
 
83
autoscan: $(srcdir)/autoscan.in $(top_srcdir)/configure.ac
 
84
        rm -f autoscan autoscan.tmp
 
85
        $(edit) $(srcdir)/autoscan.in >autoscan.tmp
 
86
        chmod +x autoscan.tmp
 
87
        mv autoscan.tmp autoscan
 
88
 
 
89
autom4te: $(srcdir)/autom4te.in $(top_srcdir)/configure.ac
 
90
        rm -f autom4te autom4te.tmp
 
91
        $(edit) $(srcdir)/autom4te.in >autom4te.tmp
 
92
        chmod +x autom4te.tmp
 
93
        mv autom4te.tmp autom4te
 
94
 
 
95
 
 
96
## --------------- ##
 
97
## Building TAGS.  ##
 
98
## --------------- ##
 
99
 
 
100
TAGS_DEPENDENCIES = $(EXTRA_DIST)
 
101
 
 
102
letters = abcdefghijklmnopqrstuvwxyz
 
103
LETTERS = ABCDEFGHIJKLMNOPQRSTUVWXYZ
 
104
DIGITS = 0123456789
 
105
WORD_REGEXP = [$(LETTERS)$(letters)_][$(LETTERS)$(letters)$(DIGITS)_]*
 
106
ETAGS_PERL = --lang=perl \
 
107
  autoreconf.in autoupdate.in autoscan.in autom4te.in
 
108
ETAGS_SH = --lang=none --regex='/\($(WORD_REGEXP)\)=/\1/' \
 
109
  autoconf.in autoheader.in ifnames.in
 
110
 
 
111
ETAGS_ARGS = $(ETAGS_PERL) $(ETAGS_SH)