aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 \