]> Dogcows Code - chaz/tar/blobdiff - src/Makefile.am
Do not depend on any particular ordering of output.
[chaz/tar] / src / Makefile.am
index c1d769969ac3ca4245bc8948d556ac3cbf64cfb7..0e813f3382c4e7ad2106a3c8879c87dcf3d225fa 100644 (file)
@@ -19,7 +19,8 @@
 ## 02111-1307, USA.
 
 bin_PROGRAMS = tar
-libexec_PROGRAMS = @RMT@
+rmtdir=$(DEFAULT_RMT_DIR)
+rmt_PROGRAMS = @RMT@
 EXTRA_PROGRAMS = rmt
 
 noinst_HEADERS = arith.h common.h rmt.h system.h tar.h
@@ -49,6 +50,10 @@ INCLUDES = -I$(top_srcdir)/lib -I../lib
 DISTCLEANFILES = localedir.h
 localedir.h : Makefile
        echo '#define LOCALEDIR "$(localedir)"' >$@
+       echo "#ifndef DEFAULT_RMT_COMMAND" >> $@
+       echo "# define DEFAULT_RMT_COMMAND \"$(rmtdir)/`echo \"rmt\" | sed 's,^.*/,,;$(transform)'`$(EXEEXT)\"" >> $@
+       echo "#endif" >> $@
+
 rmt.o tar.o : localedir.h
 
 LDADD = ../lib/libtar.a $(LIBINTL)
This page took 0.02808 seconds and 4 git commands to generate.