]> Dogcows Code - chaz/tar/blob - src/Makefile.am
(localedir.h rule): Generate correct DEFAULT_RMT_COMMAND variable.
[chaz/tar] / src / Makefile.am
1 # Makefile for GNU tar sources.
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003 Free
4 # 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_PROGRAMS = tar
22 libexec_PROGRAMS = @RMT@
23 EXTRA_PROGRAMS = rmt
24
25 noinst_HEADERS = arith.h common.h rmt.h system.h tar.h
26 rmt_SOURCES = rmt.c
27 tar_SOURCES = \
28 buffer.c\
29 compare.c\
30 create.c\
31 delete.c\
32 extract.c\
33 xheader.c\
34 incremen.c\
35 list.c\
36 mangle.c\
37 misc.c\
38 names.c\
39 rtapelib.c\
40 sparse.c\
41 system.c\
42 tar.c\
43 update.c\
44 utf8.c
45
46 localedir = $(datadir)/locale
47 INCLUDES = -I$(top_srcdir)/lib -I../lib
48
49 DISTCLEANFILES = localedir.h
50 localedir.h : Makefile
51 echo '#define LOCALEDIR "$(localedir)"' >$@
52 echo "#ifndef DEFAULT_RMT_COMMAND" >> $@
53 echo "# define DEFAULT_RMT_COMMAND \"$(libexecdir)/`echo \"rmt\" | sed 's,^.*/,,;$(transform)'`$(EXEEXT)\"" >> $@
54 echo "#endif" >> $@
55
56 rmt.o tar.o : localedir.h
57
58 LDADD = ../lib/libtar.a $(LIBINTL)
59
60 rmt_LDADD = $(LDADD) $(LIB_SETSOCKOPT)
61 tar_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
This page took 0.03759 seconds and 5 git commands to generate.