summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 154a9ea7e82a33988df19e91c7a0bc378947d9b7 (plain)
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
## Makefile for program src directory in GNU Shar utilities package.
##
## Copyright (C) 1995, 1996, 2002, 2007 Free Software Foundation, Inc.
##
## 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 3, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

## Process this file with automake to produce Makefile.in.

bin_PROGRAMS = shar unshar
if UUCODE
  bin_PROGRAMS += uuencode uudecode
endif
bin_SCRIPTS = $(ADD_SCRIPT)
EXTRA_SCRIPTS = compress-dummy mail-files mailshar remsync
EXTRA_DIST = scripts.def scripts.tpl scripts.x

DISTCLEANFILES = $(bin_SCRIPTS)

localedir = $(datadir)/locale

AM_CPPFLAGS = -I$(srcdir) -I.. -I$(top_srcdir)/lib -I../intl
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@

# stolen from fileutils-4.1.9:
# Sometimes, the expansion of $(LIBINTL) includes -lc which may
# include modules defining variables like `optind', so libfetish.a
# must precede $(LIBINTL) in order to ensure we use GNU getopt.
# But libshar.a must also follow $(LIBINTL), since libintl uses
# replacement functions defined in libshar.a.
LDADD = ../lib/libshar.a $(LIBINTL) ../lib/libshar.a

# Source dependecies.
shar_SOURCES = shar.c encode.c
unshar_SOURCES = unshar.c encode.c
uudecode_SOURCES = uudecode.c
uuencode_SOURCES = uuencode.c

all: exe-bits
installcheck: exe-bits

$(bin_PROGRAMS): ../lib/libshar.a

install-exec-hook: $(INSTALL_COMPRESS_LINK)

compress-link:
	test -f $(DESTDIR)$(bindir)/compress-dummy \
	  && ln -sf compress-dummy $(DESTDIR)$(bindir)/compress

exe-bits : $(bin_SCRIPTS)
	chmod ugo+x $(bin_SCRIPTS)

## src/Makefile.am ends here