From: Kevin McCarthy Date: Tue, 11 Aug 2015 18:20:15 +0000 (-0700) Subject: Compile txt2c using automake rules. X-Git-Tag: neomutt-20160307~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bdb128ed4a50e59467e170596c2f8c1f0859f258;p=neomutt Compile txt2c using automake rules. The compilation rule used $< which isn't portable for ordinary make rules. --- diff --git a/Makefile.am b/Makefile.am index 24c73186e..baff5386b 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 || \