$> does not work all the time
authorChristos Zoulas <christos@zoulas.com>
Sun, 6 Jan 2013 21:14:17 +0000 (21:14 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sun, 6 Jan 2013 21:14:17 +0000 (21:14 +0000)
src/Makefile.am

index c504c49567cb121075b0c0597e3dafa86f2c1524..c4a8d70046a251fcaa9aac19b3f51a4db4c72417 100644 (file)
@@ -22,6 +22,7 @@ libmagic_la_LIBADD = $(LTLIBOBJS) $(MINGWLIBS)
 file_SOURCES = file.c
 file_LDADD = libmagic.la
 CLEANFILES = magic.h
+HDR= $(top_srcdir)/src/magic.h.in
 
-magic.h:       $(top_srcdir)/src/magic.h.in
-       sed -e "s/X.YY/$$(echo @VERSION@ | tr -d .)/" < $> > $@
+magic.h:       ${HDR}
+       sed -e "s/X.YY/$$(echo @VERSION@ | tr -d .)/" < ${HDR} > $@