From fe2144d6e10971a794b9a286f1f66e4180fb4c8e Mon Sep 17 00:00:00 2001
From: Kevin McCarthy <kevin@8t8.us>
Date: Tue, 11 Aug 2015 11:20:15 -0700
Subject: [PATCH] Compile txt2c using automake rules.

The compilation rule used $< which isn't portable for ordinary make
rules.
---
 Makefile.am | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 24c73186..baff5386 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -89,15 +89,14 @@ mutt_md5_SOURCES = md5.c
 mutt_md5_CFLAGS = -DMD5UTIL
 mutt_md5_LDADD =
 
-noinst_PROGRAMS = $(MUTT_MD5)
+txt2c_SOURCES = txt2c.c
+txt2c_LDADD =
+
+noinst_PROGRAMS = $(MUTT_MD5) txt2c
 
 mutt_dotlock.c: dotlock.c
 	cp $(srcdir)/dotlock.c mutt_dotlock.c
 
-# If this fails, we will fall back to the implementation in txt2c.sh
-txt2c: txt2c.c
-	-$${NATIVECC-$(CC)} -o $@ $<
-
 conststrings.c: txt2c config.status
 	( \
 		$(CC) -v || \
-- 
2.40.0