aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2021-07-29 23:45:52 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-07-30 10:14:52 +0000
commit7c4db66eb34eebecc6b17fe86375e081b49bff00 (patch)
treec5e4f8ffa32bffd4a669b1cf199dcd0298a08412
parentb935782010edabff0b37a4256235e63bc6f946ec (diff)
build: Rename template files
The template files in the `build-aux` directory used in enums sources and headers generation use the `{$name}-template.[ch]` pattern. However, the examples in the official guide[0] and usually GNOME and Freedesktop packages use the `{$name}.[ch].template` pattern. Due to this, the name of the template files and build commands have been changed. [0] https://developer.gnome.org/gobject/stable/glib-mkenums.html
-rw-r--r--build-aux/Makefile.am10
-rw-r--r--build-aux/mm-enums-types.c.template (renamed from build-aux/mm-enums-template.c)0
-rw-r--r--build-aux/mm-enums-types.h.template (renamed from build-aux/mm-enums-template.h)0
-rw-r--r--build-aux/mm-errors-quarks.c.template (renamed from build-aux/mm-errors-quarks-template.c)0
-rw-r--r--build-aux/mm-errors-types.c.template (renamed from build-aux/mm-errors-template.c)0
-rw-r--r--build-aux/mm-errors-types.h.template (renamed from build-aux/mm-errors-template.h)0
-rw-r--r--libmm-glib/generated/Makefile.am20
-rw-r--r--plugins/Makefile.am24
-rw-r--r--src/Makefile.am24
9 files changed, 39 insertions, 39 deletions
diff --git a/build-aux/Makefile.am b/build-aux/Makefile.am
index c27e0f05..acb7afe4 100644
--- a/build-aux/Makefile.am
+++ b/build-aux/Makefile.am
@@ -1,8 +1,8 @@
EXTRA_DIST = \
header-generator.xsl \
- mm-enums-template.h \
- mm-enums-template.c \
- mm-errors-template.h \
- mm-errors-template.c \
- mm-errors-quarks-template.c
+ mm-enums-types.h.template \
+ mm-enums-types.c.template \
+ mm-errors-types.h.template \
+ mm-errors-types.c.template \
+ mm-errors-quarks.c.template
diff --git a/build-aux/mm-enums-template.c b/build-aux/mm-enums-types.c.template
index 2a7f264b..2a7f264b 100644
--- a/build-aux/mm-enums-template.c
+++ b/build-aux/mm-enums-types.c.template
diff --git a/build-aux/mm-enums-template.h b/build-aux/mm-enums-types.h.template
index 652c53dc..652c53dc 100644
--- a/build-aux/mm-enums-template.h
+++ b/build-aux/mm-enums-types.h.template
diff --git a/build-aux/mm-errors-quarks-template.c b/build-aux/mm-errors-quarks.c.template
index 4386a601..4386a601 100644
--- a/build-aux/mm-errors-quarks-template.c
+++ b/build-aux/mm-errors-quarks.c.template
diff --git a/build-aux/mm-errors-template.c b/build-aux/mm-errors-types.c.template
index 8370adf1..8370adf1 100644
--- a/build-aux/mm-errors-template.c
+++ b/build-aux/mm-errors-types.c.template
diff --git a/build-aux/mm-errors-template.h b/build-aux/mm-errors-types.h.template
index 72c90cf5..72c90cf5 100644
--- a/build-aux/mm-errors-template.h
+++ b/build-aux/mm-errors-types.h.template
diff --git a/libmm-glib/generated/Makefile.am b/libmm-glib/generated/Makefile.am
index 0016df4d..5e171238 100644
--- a/libmm-glib/generated/Makefile.am
+++ b/libmm-glib/generated/Makefile.am
@@ -54,37 +54,37 @@ GENERATED_DOC = \
BUILT_SOURCES = $(GENERATED_H) $(GENERATED_C) $(GENERATED_DOC)
# Enum types
-mm-enums-types.h: Makefile.am $(top_srcdir)/include/ModemManager-enums.h $(top_srcdir)/build-aux/mm-enums-template.h
+mm-enums-types.h: Makefile.am $(top_srcdir)/include/ModemManager-enums.h $(top_srcdir)/build-aux/mm-enums-types.h.template
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include <ModemManager.h>\n#ifndef __MM_ENUMS_TYPES_H__\n#define __MM_ENUMS_TYPES_H__\n" \
- --template $(top_srcdir)/build-aux/mm-enums-template.h \
+ --template $(top_srcdir)/build-aux/mm-enums-types.h.template \
--ftail "#endif /* __MM_ENUMS_TYPES_H__ */\n" \
$(top_srcdir)/include/ModemManager-enums.h > $@
-mm-enums-types.c: Makefile.am $(top_srcdir)/include/ModemManager-enums.h $(top_srcdir)/build-aux/mm-enums-template.c mm-enums-types.h
+mm-enums-types.c: Makefile.am $(top_srcdir)/include/ModemManager-enums.h $(top_srcdir)/build-aux/mm-enums-types.c.template mm-enums-types.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"mm-enums-types.h\"\n" \
- --template $(top_srcdir)/build-aux/mm-enums-template.c \
+ --template $(top_srcdir)/build-aux/mm-enums-types.c.template \
$(top_srcdir)/include/ModemManager-enums.h > $@
# Error types & quarks
-mm-errors-types.h: Makefile.am $(top_srcdir)/include/ModemManager-errors.h $(top_srcdir)/build-aux/mm-errors-template.h
+mm-errors-types.h: Makefile.am $(top_srcdir)/include/ModemManager-errors.h $(top_srcdir)/build-aux/mm-errors-types.h.template
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#ifndef __MM_ERRORS_TYPES_H__\n#define __MM_ERRORS_TYPES_H__\n" \
- --template $(top_srcdir)/build-aux/mm-errors-template.h \
+ --template $(top_srcdir)/build-aux/mm-errors-types.h.template \
--ftail "#endif /* __MM_ERRORS_TYPES_H__ */\n" \
$(top_srcdir)/include/ModemManager-errors.h > $@
-mm-errors-types.c: Makefile.am $(top_srcdir)/include/ModemManager-errors.h $(top_srcdir)/build-aux/mm-errors-template.c mm-errors-types.h
+mm-errors-types.c: Makefile.am $(top_srcdir)/include/ModemManager-errors.h $(top_srcdir)/build-aux/mm-errors-types.c.template mm-errors-types.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include <ModemManager.h>\n#include \"mm-errors-types.h\"\n" \
- --template $(top_srcdir)/build-aux/mm-errors-template.c \
+ --template $(top_srcdir)/build-aux/mm-errors-types.c.template \
$(top_srcdir)/include/ModemManager-errors.h > $@
-mm-errors-quarks.c: Makefile.am $(top_srcdir)/include/ModemManager-errors.h $(top_srcdir)/build-aux/mm-errors-quarks-template.c $(top_builddir)/include/ModemManager-names.h mm-errors-types.h
+mm-errors-quarks.c: Makefile.am $(top_srcdir)/include/ModemManager-errors.h $(top_srcdir)/build-aux/mm-errors-quarks.c.template $(top_builddir)/include/ModemManager-names.h mm-errors-types.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include <ModemManager.h>\n#include \"mm-errors-types.h\"\n" \
- --template $(top_srcdir)/build-aux/mm-errors-quarks-template.c \
+ --template $(top_srcdir)/build-aux/mm-errors-quarks.c.template \
$(top_srcdir)/include/ModemManager-errors.h > $@
# Manager interface
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index f0095516..e8796414 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -342,21 +342,21 @@ TELIT_ENUMS_GENERATED = \
BUILT_SOURCES += $(TELIT_ENUMS_GENERATED)
CLEANFILES += $(TELIT_ENUMS_GENERATED)
-telit/mm-telit-enums-types.h: Makefile.am $(TELIT_ENUMS_INPUTS) $(top_srcdir)/build-aux/mm-enums-template.h
+telit/mm-telit-enums-types.h: Makefile.am $(TELIT_ENUMS_INPUTS) $(top_srcdir)/build-aux/mm-enums-types.h.template
$(AM_V_GEN) \
$(MKDIR_P) telit; \
$(GLIB_MKENUMS) \
--fhead "#include \"mm-modem-helpers-telit.h\"\n#ifndef __MM_TELIT_ENUMS_TYPES_H__\n#define __MM_TELIT_ENUMS_TYPES_H__\n" \
- --template $(top_srcdir)/build-aux/mm-enums-template.h \
+ --template $(top_srcdir)/build-aux/mm-enums-types.h.template \
--ftail "#endif /* __MM_TELIT_ENUMS_TYPES_H__ */\n" \
$(TELIT_ENUMS_INPUTS) > $@
-telit/mm-telit-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-template.c telit/mm-telit-enums-types.h
+telit/mm-telit-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-types.c.template telit/mm-telit-enums-types.h
$(AM_V_GEN) \
$(MKDIR_P) telit; \
$(GLIB_MKENUMS) \
--fhead "#include \"mm-telit-enums-types.h\"" \
- --template $(top_srcdir)/build-aux/mm-enums-template.c \
+ --template $(top_srcdir)/build-aux/mm-enums-types.c.template \
$(TELIT_ENUMS_INPUTS) > $@
noinst_LTLIBRARIES += libhelpers-telit.la
@@ -799,21 +799,21 @@ HUAWEI_ENUMS_GENERATED = \
BUILT_SOURCES += $(HUAWEI_ENUMS_GENERATED)
CLEANFILES += $(HUAWEI_ENUMS_GENERATED)
-huawei/mm-huawei-enums-types.h: Makefile.am $(HUAWEI_ENUMS_INPUTS) $(top_srcdir)/build-aux/mm-enums-template.h
+huawei/mm-huawei-enums-types.h: Makefile.am $(HUAWEI_ENUMS_INPUTS) $(top_srcdir)/build-aux/mm-enums-types.h.template
$(AM_V_GEN) \
$(MKDIR_P) huawei; \
$(GLIB_MKENUMS) \
--fhead "#include \"mm-modem-helpers-huawei.h\"\n#ifndef __MM_HUAWEI_ENUMS_TYPES_H__\n#define __MM_HUAWEI_ENUMS_TYPES_H__\n" \
- --template $(top_srcdir)/build-aux/mm-enums-template.h \
+ --template $(top_srcdir)/build-aux/mm-enums-types.h.template \
--ftail "#endif /* __MM_HUAWEI_ENUMS_TYPES_H__ */\n" \
$(HUAWEI_ENUMS_INPUTS) > $@
-huawei/mm-huawei-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-template.c huawei/mm-huawei-enums-types.h
+huawei/mm-huawei-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-types.c.template huawei/mm-huawei-enums-types.h
$(AM_V_GEN) \
$(MKDIR_P) huawei; \
$(GLIB_MKENUMS) \
--fhead "#include \"mm-huawei-enums-types.h\"" \
- --template $(top_srcdir)/build-aux/mm-enums-template.c \
+ --template $(top_srcdir)/build-aux/mm-enums-types.c.template \
$(HUAWEI_ENUMS_INPUTS) > $@
noinst_LTLIBRARIES += libhelpers-huawei.la
@@ -1543,21 +1543,21 @@ UBLOX_ENUMS_GENERATED = \
ublox/mm-ublox-enums-types.c \
$(NULL)
-ublox/mm-ublox-enums-types.h: Makefile.am $(UBLOX_ENUMS_INPUTS) $(top_srcdir)/build-aux/mm-enums-template.h
+ublox/mm-ublox-enums-types.h: Makefile.am $(UBLOX_ENUMS_INPUTS) $(top_srcdir)/build-aux/mm-enums-types.h.template
$(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 \
+ --template $(top_srcdir)/build-aux/mm-enums-types.h.template \
--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
+ublox/mm-ublox-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-types.c.template ublox/mm-ublox-enums-types.h
$(AM_V_GEN) \
$(MKDIR_P) ublox; \
$(GLIB_MKENUMS) \
--fhead "#include \"mm-ublox-enums-types.h\"" \
- --template $(top_srcdir)/build-aux/mm-enums-template.c \
+ --template $(top_srcdir)/build-aux/mm-enums-types.c.template \
$(UBLOX_ENUMS_INPUTS) > $@
libhelpers_ublox_la_SOURCES = \
diff --git a/src/Makefile.am b/src/Makefile.am
index 26074bb7..b3d61385 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -85,17 +85,17 @@ HELPER_ENUMS_GENERATED = \
mm-helper-enums-types.c \
$(NULL)
-mm-helper-enums-types.h: Makefile.am $(HELPER_ENUMS_INPUTS) $(top_srcdir)/build-aux/mm-enums-template.h
+mm-helper-enums-types.h: Makefile.am $(HELPER_ENUMS_INPUTS) $(top_srcdir)/build-aux/mm-enums-types.h.template
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"mm-sms-part.h\"\n#include \"mm-modem-helpers.h\"\n#ifndef __MM_HELPER_ENUMS_TYPES_H__\n#define __MM_HELPER_ENUMS_TYPES_H__\n" \
- --template $(top_srcdir)/build-aux/mm-enums-template.h \
+ --template $(top_srcdir)/build-aux/mm-enums-types.h.template \
--ftail "#endif /* __MM_HELPER_ENUMS_TYPES_H__ */\n" \
$(HELPER_ENUMS_INPUTS) > $@
-mm-helper-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-template.c mm-helper-enums-types.h
+mm-helper-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-types.c.template mm-helper-enums-types.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"mm-helper-enums-types.h\"" \
- --template $(top_srcdir)/build-aux/mm-enums-template.c \
+ --template $(top_srcdir)/build-aux/mm-enums-types.c.template \
$(HELPER_ENUMS_INPUTS) > $@
libhelpers_la_SOURCES = \
@@ -198,17 +198,17 @@ PORT_ENUMS_GENERATED = \
mm-port-enums-types.c \
$(NULL)
-mm-port-enums-types.h: Makefile.am $(PORT_ENUMS_INPUTS) $(top_srcdir)/build-aux/mm-enums-template.h
+mm-port-enums-types.h: Makefile.am $(PORT_ENUMS_INPUTS) $(top_srcdir)/build-aux/mm-enums-types.h.template
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"config.h\"\n#include \"mm-port.h\"\n#include \"mm-port-serial-at.h\"\n#if defined WITH_QMI\n#include \"mm-port-qmi.h\"\n#endif\n#ifndef __MM_PORT_ENUMS_TYPES_H__\n#define __MM_PORT_ENUMS_TYPES_H__\n" \
- --template $(top_srcdir)/build-aux/mm-enums-template.h \
+ --template $(top_srcdir)/build-aux/mm-enums-types.h.template \
--ftail "#endif /* __MM_PORT_ENUMS_TYPES_H__ */\n" \
$(PORT_ENUMS_INPUTS) > $@
-mm-port-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-template.c mm-port-enums-types.h
+mm-port-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-types.c.template mm-port-enums-types.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"mm-port-enums-types.h\"" \
- --template $(top_srcdir)/build-aux/mm-enums-template.c \
+ --template $(top_srcdir)/build-aux/mm-enums-types.c.template \
$(PORT_ENUMS_INPUTS) > $@
libport_la_SOURCES = \
@@ -273,17 +273,17 @@ DAEMON_ENUMS_GENERATED = \
mm-daemon-enums-types.c \
$(NULL)
-mm-daemon-enums-types.h: Makefile.am $(DAEMON_ENUMS_INPUTS) $(top_srcdir)/build-aux/mm-enums-template.h
+mm-daemon-enums-types.h: Makefile.am $(DAEMON_ENUMS_INPUTS) $(top_srcdir)/build-aux/mm-enums-types.h.template
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"mm-filter.h\"\n#include \"mm-base-bearer.h\"\n#include \"mm-port-probe.h\"\n#ifndef __MM_DAEMON_ENUMS_TYPES_H__\n#define __MM_DAEMON_ENUMS_TYPES_H__\n" \
- --template $(top_srcdir)/build-aux/mm-enums-template.h \
+ --template $(top_srcdir)/build-aux/mm-enums-types.h.template \
--ftail "#endif /* __MM_DAEMON_ENUMS_TYPES_H__ */\n" \
$(DAEMON_ENUMS_INPUTS) > $@
-mm-daemon-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-template.c mm-daemon-enums-types.h
+mm-daemon-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-types.c.template mm-daemon-enums-types.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"mm-daemon-enums-types.h\"" \
- --template $(top_srcdir)/build-aux/mm-enums-template.c \
+ --template $(top_srcdir)/build-aux/mm-enums-types.c.template \
$(DAEMON_ENUMS_INPUTS) > $@
# Request to build enum types before anything else