diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/Makefile.am | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/Makefile.am b/drivers/Makefile.am index 87a26644..9c40fd17 100644 --- a/drivers/Makefile.am +++ b/drivers/Makefile.am @@ -43,12 +43,6 @@ CLEANFILES = $(BUILT_SOURCES) MAINTAINERCLEANFILES = Makefile.in -builtin.h: - echo "" > $@ - list='$(builtin_modules)'; for i in $$list; \ - do echo "extern struct ofono_plugin_desc __ofono_builtin_$$i;" >> $@; done - echo "" >> $@ - echo "static struct ofono_plugin_desc *__ofono_drivers[] = {" >> $@ - list='$(builtin_modules)'; for i in $$list; \ - do echo "&__ofono_builtin_$$i," >> $@; done - echo "NULL };" >> $@ +builtin.h: $(top_srcdir)/src/genbuiltin $(builtin_sources) + $(AM_V_GEN)$(top_srcdir)/src/genbuiltin $(builtin_modules) | \ + $(SED) -e "s/builtin\[\]/drivers\[\]/" > $@ |