Do use basename

master
Yevgen Muntyan 2007-07-13 14:44:40 -05:00
parent d8123eaac7
commit 566a11fcbe
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ AC_DEFUN_ONCE([MOO_AC_FLAGS],[
AC_SUBST(MOO_WIN32_RC_RULE)
MOO_XML2H='$(top_srcdir)/moo/mooutils/xml2h.sh'
MOO_GLADE_SUBDIR_RULE='%-glade.h: glade/%.glade $(MOO_XML2H) ; $(SHELL) $(top_srcdir)/moo/mooutils/xml2h.sh `echo [$]* | sed -e "s/-/_/"`_glade_xml [$]< > [$]@.tmp && mv [$]@.tmp [$]@'
MOO_GLADE_RULE='%-glade.h: %.glade $(MOO_XML2H) ; $(SHELL) $(top_srcdir)/moo/mooutils/xml2h.sh `echo [$]* | sed -e "s/-/_/"`_glade_xml [$]< > [$]@.tmp && mv [$]@.tmp [$]@'
MOO_GLADE_SUBDIR_RULE='%-glade.h: glade/%.glade $(MOO_XML2H) ; $(SHELL) $(top_srcdir)/moo/mooutils/xml2h.sh `basename "[$]*" | sed -e "s/-/_/"`_glade_xml [$]< > [$]@.tmp && mv [$]@.tmp [$]@'
MOO_GLADE_RULE='%-glade.h: %.glade $(MOO_XML2H) ; $(SHELL) $(top_srcdir)/moo/mooutils/xml2h.sh `basename "[$]*" | sed -e "s/-/_/"`_glade_xml [$]< > [$]@.tmp && mv [$]@.tmp [$]@'
AC_SUBST(MOO_XML2H)
AC_SUBST(MOO_GLADE_SUBDIR_RULE)
AC_SUBST(MOO_GLADE_RULE)