ttce2xdr: use autoconf substitutions

This commit is contained in:
Chase
2025-12-19 22:31:54 -05:00
committed by Jon Trulson
parent 7ab683d29a
commit 36b6f82ee8
3 changed files with 59 additions and 70 deletions

View File

@@ -1,16 +1,4 @@
MAINTAINERCLEANFILES = Makefile.in
TT_VERSION = "CDE Version @CDE_VERSION_MAJOR@.@CDE_VERSION_MINOR@.@CDE_VERSION_MICRO@@CDE_VERSION_DEV@"
TT_VERSION_DEFINE = -DTT_VERSION_STRING=\"$(TT_VERSION)\"
noinst_SCRIPTS = ttce2xdr
BUILT_SOURCES = ttce2xdr
CLEANFILES = ttce2xdr
AM_CPPFLAGS = $(TT_VERSION_DEFINE)
ttce2xdr: ttce2xdr.cpp
$(RM) $@
$(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@