File: Makefile.in

package info (click to toggle)
tla-tools 2005.0.patch.29-2
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 504 kB
  • ctags: 119
  • sloc: sh: 2,982; awk: 490; makefile: 63
file content (82 lines) | stat: -rw-r--r-- 2,403 bytes parent folder | download | duplicates (2)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Makefile for tla-tools
#
#  Copyright (C) 2003, 2004  Miles Bader <miles@gnu.org>
#
# This program 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.
#
# Written by Miles Bader <miles@gnu.org>

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@

srcdir = @srcdir@

AWK = @AWK@
ABS_AWK = @ABS_AWK@
INSTALL = @INSTALL@
SED = @SED@
TLA = @TLA@
UUIDGEN = @UUIDGEN@
TLA_ESCAPE = @TLA_ESCAPE@

VAR_EXPORTS = srcdir='$(srcdir)' bindir='$(bindir)' AWK='$(AWK)' TLA='$(TLA)' SED='$(SED)' UUIDGEN='$(UUIDGEN)' TLA_ESCAPE='$(TLA_ESCAPE)'

VPATH = $(srcdir)

INSTALL_SCRIPTS = tla-update-ids tla-copy-changes tla-cvs-sync		\
        tla-svn-sync tla-fix-changelog-conflicts tla-fork		\
        tla-fork-archive tla-file-log tla-log-to-cvs-log		\
        tla-munge-archive-names tla-changelogs-to-log tla-switch	\
        tla-abbrev-merge-log tla-commit-merge tla-partner		\
	tla-prune-revlib
EXTRA_SCRIPTS = tla-scan-for-xids tla-emacs-xids-to-db	\
	tla-munge-archive-xids

# Scripts that use `simple' (no option) command lines
SIMPLE_CMD_SCRIPTS = tla-commit-merge tla-emacs-xids-to-db tla-file-log	\
	tla-fix-changelog-conflicts tla-fork-archive			\
	tla-munge-archive-names tla-munge-archive-xids			\
	tla-scan-for-xids

SCRIPTS = $(INSTALL_SCRIPTS) $(EXTRA_SCRIPTS)
GEN_FILES = Makefile config.status

all: $(SCRIPTS)

install: $(INSTALL_SCRIPTS)
	$(INSTALL) -m 0755 -d $(DESTDIR)$(bindir)
	$(INSTALL) -m 0755 $^ $(DESTDIR)$(bindir)
uninstall:
	for S in $(INSTALL_SCRIPTS); do rm -f $(DESTDIR)$(bindir)/$$S; done

clean:
	rm -f $(SCRIPTS)
distclean: clean
	rm -f $(GEN_FILES)

Makefile: Makefile.in config.status
	./config.status
config.status: configure
	./config.status --recheck

# Version maintenance
$(SCRIPTS): ,tla-tools-version
,tla-tools-version: FAKE
	$(VAR_EXPORTS) $(srcdir)/update-version "$(srcdir)" "$@"
FAKE:

# Extra dependencies
$(SCRIPTS): Makefile shpp.awk hdr.shpp tla-tools-funs.awk cmd-line.shpp
$(SIMPLE_CMD_SCRIPTS): simple-cmd-line.shpp
tla-update-ids tla-munge-archive-xids: tagline-funs.awk

%: %.shpp
	$(VAR_EXPORTS) $(AWK) -f $(srcdir)/shpp.awk $< > $@ && chmod +x $@
%: %.awk
	$(SED) "1s;\\\$$AWK;$(ABS_AWK);" $< > $@ && chmod +x $@

# arch-tag: 2c8c47a7-a6f5-40fa-8cdf-20669d35689e