diff options
author | Colin Walters <walters@verbum.org> | 2016-05-12 10:15:24 -0400 |
---|---|---|
committer | Colin Walters (automation) <walters+githubbot@verbum.org> | 2016-05-12 17:15:50 +0000 |
commit | 817060e7722e3515e9e5f5e6474a2166347dbefe (patch) | |
tree | 10bd5bcd48ca18d824dd11f39a4c3270623ad2ec /Makefile-libostree.am | |
parent | a5f703799f8da2b20eba949d2d053d4b307490c9 (diff) | |
download | ostree-817060e7722e3515e9e5f5e6474a2166347dbefe.tar.gz |
build: Don't run glib-mkenums if there's nothing to do
This fixes the build without libsoup.
Closes: #296
Approved by: gatispaeglis
Diffstat (limited to 'Makefile-libostree.am')
-rw-r--r-- | Makefile-libostree.am | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile-libostree.am b/Makefile-libostree.am index affdd745..a619cbcf 100644 --- a/Makefile-libostree.am +++ b/Makefile-libostree.am @@ -33,9 +33,11 @@ lib_LTLIBRARIES += libostree-1.la libostreeincludedir = $(includedir)/ostree-1 libostreeinclude_HEADERS = $(libostree_public_headers) -ENUM_TYPES = \ - $(srcdir)/src/libostree/ostree-fetcher.h \ - $(NULL) +ENUM_TYPES = $(NULL) + +if USE_LIBSOUP +ENUM_TYPES += $(srcdir)/src/libostree/ostree-fetcher.h +endif src/libostree/ostree-enumtypes.h: src/libostree/ostree-enumtypes.h.template $(ENUM_TYPES) $(AM_V_GEN) $(GLIB_MKENUMS) \ @@ -48,12 +50,14 @@ src/libostree/ostree-enumtypes.c: src/libostree/ostree-enumtypes.c.template $(EN --fhead "#include \"ostree-enumtypes.h\"" \ $(ENUM_TYPES) > $@.tmp && mv $@.tmp $@ +if USE_LIBSOUP ENUM_GENERATED = \ src/libostree/ostree-enumtypes.h \ src/libostree/ostree-enumtypes.c \ $(NULL) BUILT_SOURCES += $(ENUM_GENERATED) +endif CLEANFILES += $(BUILT_SOURCES) |