re-mark 1.29b-2 as not yet uploaded (merge madness!)
[debian/tar] / lib / Makefile.am
1 # Makefile for GNU tar library.                 -*- Makefile -*-
2
3 # Copyright 1994-1997, 1999-2001, 2003-2007, 2009-2010, 2013-2014, 2016
4 # Free Software Foundation, Inc.
5
6 # This file is part of GNU tar.
7
8 # GNU tar is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
12
13 # GNU tar is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
21 noinst_LIBRARIES=libtar.a
22 rmt-command.h : Makefile
23         $(AM_V_GEN)rm -f $@-t $@
24         $(AM_V_at)echo "#ifndef DEFAULT_RMT_COMMAND" >> $@-t
25         $(AM_V_at)echo "# define DEFAULT_RMT_COMMAND \"$(DEFAULT_RMT_DIR)/`echo rmt | sed '$(transform)'`$(EXEEXT)\"" >> $@-t
26         $(AM_V_at)echo "#endif" >> $@-t
27         $(AM_V_at)mv $@-t $@
28 BUILT_SOURCES = rmt-command.h
29 CLEANFILES = rmt-command.h rmt-command.h-t
30 AM_CPPFLAGS = -I$(top_srcdir)/gnu -I../ -I../gnu
31 AM_CFLAGS = $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS)
32
33 noinst_HEADERS = \
34  paxlib.h\
35  rmt.h\
36  stdopen.h\
37  system.h\
38  system-ioctl.h\
39  wordsplit.h\
40  xattr-at.h
41
42 libtar_a_SOURCES = \
43   paxerror.c paxexit-status.c paxlib.h paxnames.c \
44   rtapelib.c \
45   rmt.h \
46   stdopen.c stdopen.h \
47   system.h system-ioctl.h \
48   wordsplit.c\
49   xattr-at.c
50
51 if !TAR_COND_XATTR_H
52 BUILT_SOURCES += attr/xattr.h
53 attr/xattr.h: attr-xattr.in.h $(top_builddir)/config.status
54         $(AM_V_at)$(MKDIR_P) attr
55         $(AM_V_GEN)rm -f $@-t $@ && \
56          cp $(srcdir)/attr-xattr.in.h attr/xattr.h
57 endif
58
59 MOSTLYCLEANFILES = attr/xattr.h
60
61 EXTRA_DIST = attr-xattr.in.h