summaryrefslogtreecommitdiff
path: root/libmm-glib
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 /libmm-glib
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
Diffstat (limited to 'libmm-glib')
-rw-r--r--libmm-glib/generated/Makefile.am20
1 files changed, 10 insertions, 10 deletions
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