]> icculus.org git repositories - icculus/xz.git/blob - src/xzdec/Makefile.am
Escape dashes in xzmore.1
[icculus/xz.git] / src / xzdec / Makefile.am
1 ##
2 ## Author: Lasse Collin
3 ##
4 ## This file has been put into the public domain.
5 ## You can do whatever you want with this file.
6 ##
7
8 # Windows resource compiler support. It's fine to use xz_CPPFLAGS
9 # also for lzmadec.
10 .rc.o:
11         $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
12                 $(xzdec_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) -i $< -o $@
13
14
15 bin_PROGRAMS = xzdec lzmadec
16
17 xzdec_SOURCES = \
18         xzdec.c \
19         $(top_srcdir)/src/common/tuklib_progname.c \
20         $(top_srcdir)/src/common/tuklib_exit.c \
21         $(top_srcdir)/src/common/tuklib_physmem.c
22
23 if COND_W32
24 xzdec_SOURCES += xzdec_w32res.rc
25 endif
26
27 xzdec_CPPFLAGS = \
28         -DTUKLIB_GETTEXT=0 \
29         -I$(top_srcdir)/src/common \
30         -I$(top_srcdir)/src/liblzma/api \
31         -I$(top_builddir)/lib \
32         $(STATIC_CPPFLAGS)
33 xzdec_LDFLAGS = $(STATIC_LDFLAGS)
34 xzdec_LDADD = $(top_builddir)/src/liblzma/liblzma.la
35
36 if COND_GNULIB
37 xzdec_LDADD += $(top_builddir)/lib/libgnu.a
38 endif
39
40 xzdec_LDADD += $(LTLIBINTL)
41
42
43 lzmadec_SOURCES = \
44         xzdec.c \
45         $(top_srcdir)/src/common/tuklib_progname.c \
46         $(top_srcdir)/src/common/tuklib_exit.c \
47         $(top_srcdir)/src/common/tuklib_physmem.c
48
49 if COND_W32
50 lzmadec_SOURCES += lzmadec_w32res.rc
51 endif
52
53 lzmadec_CPPFLAGS = $(xzdec_CPPFLAGS) -DLZMADEC
54 lzmadec_LDFLAGS = $(xzdec_LDFLAGS)
55 lzmadec_LDADD = $(xzdec_LDADD)
56
57
58 dist_man_MANS = xzdec.1
59
60 install-data-hook:
61         cd $(DESTDIR)$(mandir)/man1 && \
62         target=`echo xzdec | sed '$(transform)'` && \
63         link=`echo lzmadec | sed '$(transform)'` && \
64         rm -f $$link.1 && \
65         $(LN_S) $$target.1 $$link.1
66
67 uninstall-hook:
68         cd $(DESTDIR)$(mandir)/man1 && \
69         link=`echo lzmadec | sed '$(transform)'` && \
70         rm -f $$link.1