aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2017-02-15 10:10:51 +0100
committerAleksander Morgado <aleksander@aleksander.es>2017-02-28 10:59:46 +0100
commit40e6fa48c4d43069ced8cd9bc7206d3554b6e72a (patch)
tree969098c0825a58f8f2d138f60319eed04eee9308
parent37df2643d2334a8ed8b9774396fcd2567a68a6de (diff)
build: make sure subdir exists before running glib-mkenums
Reported-by: Colin Helliwell <colin.helliwell@ln-systems.com>
-rw-r--r--configure.ac1
-rw-r--r--plugins/Makefile.am22
2 files changed, 14 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index 3ac71efc..0ad35ae5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,6 +44,7 @@ dnl Required programs
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
+AC_PROG_MKDIR_P
dnl Initialize libtool
LT_PREREQ([2.2])
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 86026fd5..596866b7 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -900,17 +900,21 @@ UBLOX_ENUMS_GENERATED = \
$(NULL)
ublox/mm-ublox-enums-types.h: Makefile.am $(UBLOX_ENUMS_INPUTS) $(top_srcdir)/build-aux/mm-enums-template.h
- $(AM_V_GEN) $(GLIB_MKENUMS) \
- --fhead "#include \"mm-modem-helpers-ublox.h\"\n#ifndef __MM_UBLOX_ENUMS_TYPES_H__\n#define __MM_UBLOX_ENUMS_TYPES_H__\n" \
- --template $(top_srcdir)/build-aux/mm-enums-template.h \
- --ftail "#endif /* __MM_UBLOX_ENUMS_TYPES_H__ */\n" \
- $(UBLOX_ENUMS_INPUTS) > $@
+ $(AM_V_GEN) \
+ $(MKDIR_P) ublox; \
+ $(GLIB_MKENUMS) \
+ --fhead "#include \"mm-modem-helpers-ublox.h\"\n#ifndef __MM_UBLOX_ENUMS_TYPES_H__\n#define __MM_UBLOX_ENUMS_TYPES_H__\n" \
+ --template $(top_srcdir)/build-aux/mm-enums-template.h \
+ --ftail "#endif /* __MM_UBLOX_ENUMS_TYPES_H__ */\n" \
+ $(UBLOX_ENUMS_INPUTS) > $@
ublox/mm-ublox-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-template.c ublox/mm-ublox-enums-types.h
- $(AM_V_GEN) $(GLIB_MKENUMS) \
- --fhead "#include \"mm-ublox-enums-types.h\"" \
- --template $(top_srcdir)/build-aux/mm-enums-template.c \
- $(UBLOX_ENUMS_INPUTS) > $@
+ $(AM_V_GEN) \
+ $(MKDIR_P) ublox; \
+ $(GLIB_MKENUMS) \
+ --fhead "#include \"mm-ublox-enums-types.h\"" \
+ --template $(top_srcdir)/build-aux/mm-enums-template.c \
+ $(UBLOX_ENUMS_INPUTS) > $@
libhelpers_ublox_la_SOURCES = \
ublox/mm-modem-helpers-ublox.c \