Files
simtrace2/host/include/Makefile.am
T
Vadim Yanitskiy 6345a2bde9 build: include version.h.tpl in the release tarballs
simtrace2-host-0.9.1.tar.bz2 does not compile because
this file is missing.  Add it to EXTRA_DIST.

make  all-recursive
make[1]: Entering directory '/build/simtrace2/src/simtrace2-0.9.1'
Making all in include
make[2]: Entering directory '/build/simtrace2/src/simtrace2-0.9.1/include'
make[2]: *** No rule to make target 'osmocom/simtrace2/version.h.tpl',
             needed by 'osmocom/simtrace2/version.h'.  Stop.
make[2]: Leaving directory '/build/simtrace2/src/simtrace2-0.9.1/include'
make[1]: *** [Makefile:452: all-recursive] Error 1
make[1]: Leaving directory '/build/simtrace2/src/simtrace2-0.9.1'
make: *** [Makefile:376: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Change-Id: I8c50c8df012b2b7eb5ee6046f14ccc4d2c07194e
Fixes: d0ad985e ("Generate a version.h file")
2026-09-07 15:35:31 +05:00

21 lines
713 B
Makefile

osmocom/simtrace2/version.h: osmocom/simtrace2/version.h.tpl
$(AM_V_GEN)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)sed \
-e "s/{{VERSION}}/$$(echo '@VERSION@' | cut -d. -f1-3)/g" \
-e "s/{{VERSION_MAJOR}}/$$(echo '@VERSION@' | cut -d. -f1)/g" \
-e "s/{{VERSION_MINOR}}/$$(echo '@VERSION@' | cut -d. -f2)/g" \
-e "s/{{VERSION_PATCH}}/$$(echo '@VERSION@' | cut -d. -f3)/g" \
$< > $@
nobase_include_HEADERS = \
osmocom/simtrace2/apdu_dispatch.h \
osmocom/simtrace2/simtrace2_api.h \
osmocom/simtrace2/simtrace_usb.h \
osmocom/simtrace2/simtrace_prot.h \
osmocom/simtrace2/usb_util.h \
osmocom/simtrace2/gsmtap.h \
osmocom/simtrace2/version.h \
$(NULL)
EXTRA_DIST = osmocom/simtrace2/version.h.tpl