]> git.draconx.ca Git - gob-dx.git/blobdiff - Makefile.am
Replace GOB2_CHECK with the version from dxcommon.
[gob-dx.git] / Makefile.am
index 5e859a17a4edcc2e8e09145f6a34d59a5c568b71..0f6ad3da08ea1b68cabb8542f22422df9465f349 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright © 2019 Nick Bowler
+# Copyright © 2019-2020 Nick Bowler
 #
 # Based on original work Copyright © 1999-2013 Jiri (George) Lebl.
 #
@@ -84,6 +84,13 @@ uninstall-gob2-html:
 .PHONY: uninstall-gob2-html
 
 m4dir = $(datadir)/aclocal
-dist_m4_DATA = gob2.m4
+m4_DATA = gob2.m4
+
+gob2.m4: $(top_srcdir)/common/m4/gob2.m4
+       $(AM_V_GEN) $(SED) 's/DX_PROG_GOB2/GOB2_CHECK/g' \
+         $(top_srcdir)/common/m4/gob2.m4 >$@.tmp
+       $(AM_V_at) mv -f $@.tmp $@
+DISTCLEANFILES += gob2.m4
+EXTRA_DIST += common/m4/gob2.m4
 
 include $(top_srcdir)/common/snippet/autotest.mk