aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-08 00:06:40 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-20 14:30:43 +0100
commitf444600afe1d1b9ddfd75bb6abcd0d51af6ddad7 (patch)
tree9c2edb7bc3de6f1db536b2e61e0629bbb63f076b /include
parentd1537e033f2fee06590fdc8df08272a7f91bdb04 (diff)
build: fix build dependencies for generated sources
Ensure that a changed conv_gen.py and/or conv_codes_gsm.py result in regeneration of the gsm0503* generated sources. Before this patch, manual cleaning of the generated files was necessary to benefit from a code update. Change-Id: Ib4328662c21280c0ea6aa9391a64ada2c6598704
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 7d0b384c..e2a1b127 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -1,3 +1,5 @@
+BUILT_SOURCES = osmocom/gsm/gsm0503.h
+
nobase_include_HEADERS = \
osmocom/codec/codec.h \
osmocom/core/application.h \
@@ -149,7 +151,7 @@ osmocom/core/crc%gen.h: osmocom/core/crcXXgen.h.tpl
$(AM_V_GEN)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)sed -e's/XX/$*/g' $< > $@
-osmocom/gsm/gsm0503.h:
+osmocom/gsm/gsm0503.h: $(top_srcdir)/utils/conv_gen.py $(top_srcdir)/utils/conv_codes_gsm.py
$(AM_V_GEN)python2 $(top_srcdir)/utils/conv_gen.py gen_header gsm \
--target-path $(builddir)/osmocom/gsm