2 ## Author: Lasse Collin
4 ## This file has been put into the public domain.
5 ## You can do whatever you want with this file.
8 # Windows resource compiler support. It's fine to use xz_CPPFLAGS
11 $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
12 $(xzdec_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) -i $< -o $@
17 ../common/tuklib_progname.c \
18 ../common/tuklib_exit.c
21 xzdec_SOURCES += xzdec_w32res.rc
26 -I$(top_srcdir)/src/common \
27 -I$(top_srcdir)/src/liblzma/api \
29 xzdec_LDADD = $(top_builddir)/src/liblzma/liblzma.la
32 xzdec_LDADD += $(top_builddir)/lib/libgnu.a
35 xzdec_LDADD += $(LTLIBINTL)
40 ../common/tuklib_progname.c \
41 ../common/tuklib_exit.c
44 lzmadec_SOURCES += lzmadec_w32res.rc
47 lzmadec_CPPFLAGS = $(xzdec_CPPFLAGS) -DLZMADEC
48 lzmadec_LDFLAGS = $(xzdec_LDFLAGS)
49 lzmadec_LDADD = $(xzdec_LDADD)
56 dist_man_MANS = xzdec.1
60 bin_PROGRAMS += lzmadec
62 # Create the symlink lzmadec.1->xzdec.1 only if xzdec.1 was installed.
63 # This is better than creating a dangling symlink, especially
64 # because creating the link may fail due to the directory being missing.
66 # FIXME: The correct solution would be to install xzdec.1 as lzmadec.1
67 # but I don't know what is the sane way to do it and since this is a bit
68 # unusual situation anyway, it's not that important.
71 cd $(DESTDIR)$(mandir)/man1 && \
72 target=`echo xzdec | sed '$(transform)'` && \
73 link=`echo lzmadec | sed '$(transform)'` && \
75 $(LN_S) $$target.1 $$link.1
78 cd $(DESTDIR)$(mandir)/man1 && \
79 link=`echo lzmadec | sed '$(transform)'` && \