(localedir.h rule): Generate correct DEFAULT_RMT_COMMAND variable.

This commit is contained in:
Sergey Poznyakoff
2004-05-10 11:39:51 +00:00
parent 2b708cb119
commit 898dc536c6

View File

@@ -49,6 +49,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 \"$(libexecdir)/`echo \"rmt\" | sed 's,^.*/,,;$(transform)'`$(EXEEXT)\"" >> $@
echo "#endif" >> $@
rmt.o tar.o : localedir.h
LDADD = ../lib/libtar.a $(LIBINTL)