| Makefile.am | Makefile.am | |||
|---|---|---|---|---|
| skipping to change at line 16 | skipping to change at line 16 | |||
| ## | ## | |||
| # Windows resource compiler support. It's fine to use xz_CPPFLAGS | # Windows resource compiler support. It's fine to use xz_CPPFLAGS | |||
| # also for lzmadec. | # also for lzmadec. | |||
| .rc.o: | .rc.o: | |||
| $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | |||
| $(xzdec_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) -i $< -o $@ | $(xzdec_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) -i $< -o $@ | |||
| xzdec_SOURCES = \ | xzdec_SOURCES = \ | |||
| xzdec.c \ | xzdec.c \ | |||
| $(top_srcdir)/src/common/tuklib_progname.c \ | ../common/tuklib_progname.c \ | |||
| $(top_srcdir)/src/common/tuklib_exit.c | ../common/tuklib_exit.c | |||
| if COND_W32 | if COND_W32 | |||
| xzdec_SOURCES += xzdec_w32res.rc | xzdec_SOURCES += xzdec_w32res.rc | |||
| endif | endif | |||
| xzdec_CPPFLAGS = \ | xzdec_CPPFLAGS = \ | |||
| -DTUKLIB_GETTEXT=0 \ | -DTUKLIB_GETTEXT=0 \ | |||
| -I$(top_srcdir)/src/common \ | -I$(top_srcdir)/src/common \ | |||
| -I$(top_srcdir)/src/liblzma/api \ | -I$(top_srcdir)/src/liblzma/api \ | |||
| -I$(top_builddir)/lib | -I$(top_builddir)/lib | |||
| xzdec_LDADD = $(top_builddir)/src/liblzma/liblzma.la | xzdec_LDADD = $(top_builddir)/src/liblzma/liblzma.la | |||
| if COND_GNULIB | if COND_GNULIB | |||
| xzdec_LDADD += $(top_builddir)/lib/libgnu.a | xzdec_LDADD += $(top_builddir)/lib/libgnu.a | |||
| endif | endif | |||
| xzdec_LDADD += $(LTLIBINTL) | xzdec_LDADD += $(LTLIBINTL) | |||
| lzmadec_SOURCES = \ | lzmadec_SOURCES = \ | |||
| xzdec.c \ | xzdec.c \ | |||
| $(top_srcdir)/src/common/tuklib_progname.c \ | ../common/tuklib_progname.c \ | |||
| $(top_srcdir)/src/common/tuklib_exit.c | ../common/tuklib_exit.c | |||
| if COND_W32 | if COND_W32 | |||
| lzmadec_SOURCES += lzmadec_w32res.rc | lzmadec_SOURCES += lzmadec_w32res.rc | |||
| endif | endif | |||
| lzmadec_CPPFLAGS = $(xzdec_CPPFLAGS) -DLZMADEC | lzmadec_CPPFLAGS = $(xzdec_CPPFLAGS) -DLZMADEC | |||
| lzmadec_LDFLAGS = $(xzdec_LDFLAGS) | lzmadec_LDFLAGS = $(xzdec_LDFLAGS) | |||
| lzmadec_LDADD = $(xzdec_LDADD) | lzmadec_LDADD = $(xzdec_LDADD) | |||
| bin_PROGRAMS = | bin_PROGRAMS = | |||
| if COND_XZDEC | if COND_XZDEC | |||
| bin_PROGRAMS += xzdec | bin_PROGRAMS += xzdec | |||
| dist_man_MANS = xzdec.1 | dist_man_MANS = xzdec.1 | |||
| endif | endif | |||
| if COND_LZMADEC | if COND_LZMADEC | |||
| bin_PROGRAMS += lzmadec | bin_PROGRAMS += lzmadec | |||
| # FIXME: If xzdec is disabled, this will create a dangling symlink. | # Create the symlink lzmadec.1->xzdec.1 only if xzdec.1 was installed. | |||
| # This is better than creating a dangling symlink, especially | ||||
| # because creating the link may fail due to the directory being missing. | ||||
| # | ||||
| # FIXME: The correct solution would be to install xzdec.1 as lzmadec.1 | ||||
| # but I don't know what is the sane way to do it and since this is a bit | ||||
| # unusual situation anyway, it's not that important. | ||||
| if COND_XZDEC | ||||
| install-data-hook: | install-data-hook: | |||
| cd $(DESTDIR)$(mandir)/man1 && \ | cd $(DESTDIR)$(mandir)/man1 && \ | |||
| target=`echo xzdec | sed '$(transform)'` && \ | target=`echo xzdec | sed '$(transform)'` && \ | |||
| link=`echo lzmadec | sed '$(transform)'` && \ | link=`echo lzmadec | sed '$(transform)'` && \ | |||
| rm -f $$link.1 && \ | rm -f $$link.1 && \ | |||
| $(LN_S) $$target.1 $$link.1 | $(LN_S) $$target.1 $$link.1 | |||
| uninstall-hook: | uninstall-hook: | |||
| cd $(DESTDIR)$(mandir)/man1 && \ | cd $(DESTDIR)$(mandir)/man1 && \ | |||
| link=`echo lzmadec | sed '$(transform)'` && \ | link=`echo lzmadec | sed '$(transform)'` && \ | |||
| rm -f $$link.1 | rm -f $$link.1 | |||
| endif | endif | |||
| endif | ||||
| End of changes. 4 change blocks. | ||||
| 5 lines changed or deleted | 12 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ | ||||