]> icculus.org git repositories - icculus/xz.git/blob - src/xzdec/Makefile.am
Remove --force from xzdec.
[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 = xzdec.c
18
19 if COND_W32
20 xzdec_SOURCES += xzdec_w32res.rc
21 endif
22
23 xzdec_CPPFLAGS = \
24         -I$(top_srcdir)/src/common \
25         -I$(top_srcdir)/src/liblzma/api \
26         -I$(top_builddir)/lib \
27         $(STATIC_CPPFLAGS)
28 xzdec_LDFLAGS = $(STATIC_LDFLAGS)
29 xzdec_LDADD = $(top_builddir)/src/liblzma/liblzma.la
30
31 if COND_GNULIB
32 xzdec_LDADD += $(top_builddir)/lib/libgnu.a
33 endif
34
35 xzdec_LDADD += $(LTLIBINTL)
36
37
38 lzmadec_SOURCES = xzdec.c
39
40 if COND_W32
41 lzmadec_SOURCES += lzmadec_w32res.rc
42 endif
43
44 lzmadec_CPPFLAGS = $(xzdec_CPPFLAGS) -DLZMADEC
45 lzmadec_LDFLAGS = $(xzdec_LDFLAGS)
46 lzmadec_LDADD = $(xzdec_LDADD)
47
48
49 dist_man_MANS = xzdec.1
50
51 install-data-hook:
52         cd $(DESTDIR)$(mandir)/man1 && \
53         target=`echo xzdec | sed '$(transform)'` && \
54         link=`echo lzmadec | sed '$(transform)'` && \
55         rm -f $$link.1 && \
56         $(LN_S) $$target.1 $$link.1
57
58 uninstall-hook:
59         cd $(DESTDIR)$(mandir)/man1 && \
60         link=`echo lzmadec | sed '$(transform)'` && \
61         rm -f $$link.1