build: Create src/builtin.h via BUILT_SOURCES
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 12 Nov 2011 23:23:12 +0000 (08:23 +0900)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 12 Nov 2011 23:23:12 +0000 (08:23 +0900)
Makefile.am

index b797661..d5a76f9 100644 (file)
@@ -87,9 +87,9 @@ src_connmand_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ \
 src_connmand_LDFLAGS = -Wl,--export-dynamic \
                                -Wl,--version-script=$(srcdir)/src/connman.ver
 
-BUILT_SOURCES = $(local_headers)
+BUILT_SOURCES = $(local_headers) src/builtin.h
 
-CLEANFILES = src/connman.conf src/builtin.h $(BUILT_SOURCES)
+CLEANFILES = src/connman.conf $(BUILT_SOURCES)
 
 statedir = $(localstatedir)/run/connman
 
@@ -245,8 +245,6 @@ MAINTAINERCLEANFILES = Makefile.in \
        ltmain.sh depcomp compile missing install-sh mkinstalldirs
 
 
-src/plugin.$(OBJEXT): src/builtin.h
-
 src/builtin.h: src/genbuiltin $(builtin_sources)
        $(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@