]> granicus.if.org Git - neomutt/commitdiff
Compile txt2c using automake rules.
authorKevin McCarthy <kevin@8t8.us>
Tue, 11 Aug 2015 18:20:15 +0000 (11:20 -0700)
committerKevin McCarthy <kevin@8t8.us>
Tue, 11 Aug 2015 18:20:15 +0000 (11:20 -0700)
The compilation rule used $< which isn't portable for ordinary make
rules.

Makefile.am

index 24c73186ea19426cf28d0d013f08c68113cdf564..baff5386b25bf69d018881fb8484a607a2f400c3 100644 (file)
@@ -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 || \