Commit 7a975fa6 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels
Browse files

build: fix enum type generation

Replace filename with basename in template file and also regenerate
enum types if Makefile.am changes.

#52
parent f934458d
Pipeline #174818 passed with stages
in 7 minutes and 46 seconds
......@@ -40,11 +40,11 @@ ENUM_TYPES = \
$(srcdir)/gf-keybindings.h \
$(NULL)
gf-common-enum-types.c: gf-common-enum-types.c.in gf-common-enum-types.h $(ENUM_TYPES)
gf-common-enum-types.c: gf-common-enum-types.c.in $(ENUM_TYPES) Makefile.am
$(AM_V_GEN) $(GLIB_MKENUMS) --template $(srcdir)/gf-common-enum-types.c.in $(ENUM_TYPES) > \
gf-common-enum-types.c.tmp && mv gf-common-enum-types.c.tmp gf-common-enum-types.c
gf-common-enum-types.h: gf-common-enum-types.h.in $(ENUM_TYPES)
gf-common-enum-types.h: gf-common-enum-types.h.in $(ENUM_TYPES) Makefile.am
$(AM_V_GEN) $(GLIB_MKENUMS) --template $(srcdir)/gf-common-enum-types.h.in $(ENUM_TYPES) > \
gf-common-enum-types.h.tmp && mv gf-common-enum-types.h.tmp gf-common-enum-types.h
......
......@@ -4,7 +4,7 @@
/*** END file-header ***/
/*** BEGIN file-production ***/
#include "@filename@"
#include "@basename@"
/*** END file-production ***/
/*** BEGIN value-header ***/
......
......@@ -68,11 +68,11 @@ ENUM_TYPES = \
$(srcdir)/gf-desktop-enums.h \
$(NULL)
gf-desktop-enum-types.c: gf-desktop-enum-types.c.in gf-desktop-enum-types.h $(ENUM_TYPES)
gf-desktop-enum-types.c: gf-desktop-enum-types.c.in $(ENUM_TYPES) Makefile.am
$(AM_V_GEN) $(GLIB_MKENUMS) --template $(srcdir)/gf-desktop-enum-types.c.in $(ENUM_TYPES) > \
gf-desktop-enum-types.c.tmp && mv gf-desktop-enum-types.c.tmp gf-desktop-enum-types.c
gf-desktop-enum-types.h: gf-desktop-enum-types.h.in $(ENUM_TYPES)
gf-desktop-enum-types.h: gf-desktop-enum-types.h.in $(ENUM_TYPES) Makefile.am
$(AM_V_GEN) $(GLIB_MKENUMS) --template $(srcdir)/gf-desktop-enum-types.h.in $(ENUM_TYPES) > \
gf-desktop-enum-types.h.tmp && mv gf-desktop-enum-types.h.tmp gf-desktop-enum-types.h
......
......@@ -4,7 +4,7 @@
/*** END file-header ***/
/*** BEGIN file-production ***/
#include "@filename@"
#include "@basename@"
/*** END file-production ***/
/*** BEGIN value-header ***/
......
......@@ -69,11 +69,11 @@ ENUM_TYPES = \
$(srcdir)/gf-unlock-dialog.h \
$(NULL)
gf-screensaver-enum-types.c: gf-screensaver-enum-types.c.in gf-screensaver-enum-types.h $(ENUM_TYPES)
gf-screensaver-enum-types.c: gf-screensaver-enum-types.c.in $(ENUM_TYPES) Makefile.am
$(AM_V_GEN) $(GLIB_MKENUMS) --template $(srcdir)/gf-screensaver-enum-types.c.in $(ENUM_TYPES) > \
gf-screensaver-enum-types.c.tmp && mv gf-screensaver-enum-types.c.tmp gf-screensaver-enum-types.c
gf-screensaver-enum-types.h: gf-screensaver-enum-types.h.in $(ENUM_TYPES)
gf-screensaver-enum-types.h: gf-screensaver-enum-types.h.in $(ENUM_TYPES) Makefile.am
$(AM_V_GEN) $(GLIB_MKENUMS) --template $(srcdir)/gf-screensaver-enum-types.h.in $(ENUM_TYPES) > \
gf-screensaver-enum-types.h.tmp && mv gf-screensaver-enum-types.h.tmp gf-screensaver-enum-types.h
......
......@@ -4,7 +4,7 @@
/*** END file-header ***/
/*** BEGIN file-production ***/
#include "@filename@"
#include "@basename@"
/*** END file-production ***/
/*** BEGIN value-header ***/
......
......@@ -99,11 +99,11 @@ ENUM_TYPES = \
$(srcdir)/gvc/gvc-mixer-stream.h \
$(NULL)
gvc-enum-types.c: gvc-enum-types.c.in gvc-enum-types.h $(ENUM_TYPES)
gvc-enum-types.c: gvc-enum-types.c.in $(ENUM_TYPES) Makefile.am
$(AM_V_GEN) $(GLIB_MKENUMS) --template $(srcdir)/gvc-enum-types.c.in $(ENUM_TYPES) > \
gvc-enum-types.c.tmp && mv gvc-enum-types.c.tmp gvc-enum-types.c
gvc-enum-types.h: gvc-enum-types.h.in $(ENUM_TYPES)
gvc-enum-types.h: gvc-enum-types.h.in $(ENUM_TYPES) Makefile.am
$(AM_V_GEN) $(GLIB_MKENUMS) --template $(srcdir)/gvc-enum-types.h.in $(ENUM_TYPES) > \
gvc-enum-types.h.tmp && mv gvc-enum-types.h.tmp gvc-enum-types.h
......
......@@ -4,7 +4,7 @@
/*** END file-header ***/
/*** BEGIN file-production ***/
#include "@filename@"
#include "@basename@"
/*** END file-production ***/
/*** BEGIN value-header ***/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment