[PATCH] build: Fix make rule for building crc%gen.h

Maciej Grela maciej.grela at gmail.com
Sun Sep 16 18:58:24 UTC 2012


The current rule for building a directory for crc%gen.h uses $(notdir
$@) causing a build error:

make[3]: Entering directory
`/home/enki/devel/tst/osmocom-bb/src/shared/libosmocore/build-target/include'
/usr/bin/mkdir -p crc16gen.h
sed -e's/XX/16/g' ../../include/osmocom/core/crcXXgen.h.tpl >
osmocom/core/crc16gen.h

Changed to use $(dir $@) which makes more sense when calling mkdir.

Signed-off-by: Maciej Grela <maciej.grela at gmail.com>
---
 src/shared/libosmocore/include/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/libosmocore/include/Makefile.am
b/src/shared/libosmocore/include/Makefile.am
index dec8eac..2c5fb3e 100644
--- a/src/shared/libosmocore/include/Makefile.am
+++ b/src/shared/libosmocore/include/Makefile.am
@@ -99,5 +99,5 @@ endif
 noinst_HEADERS = osmocom/core/timer_compat.h

 osmocom/core/crc%gen.h: osmocom/core/crcXXgen.h.tpl
-       $(AM_V_GEN)$(MKDIR_P) $(notdir $@)
+       $(AM_V_GEN)$(MKDIR_P) $(dir $@)
        $(AM_V_GEN)sed -e's/XX/$*/g' $< > $@
-- 
1.7.12




More information about the baseband-devel mailing list