From b0163d618274004990a0a24c5f1d2564861e4861 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 29 Jan 2016 11:02:17 +0100 Subject: [PATCH] build: 'make clean' removes parse-datetime.c and fix make dist while at it. Signed-off-by: Giuseppe Scrivano --- Makefile-libostree.am | 5 ++++- Makefile-ostree.am | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile-libostree.am b/Makefile-libostree.am index 238cb0b4..23fa9494 100644 --- a/Makefile-libostree.am +++ b/Makefile-libostree.am @@ -182,7 +182,10 @@ pkgconfig_DATA += src/libostree/ostree-1.pc gpgreadme_DATA = src/libostree/README-gpg gpgreadmedir = $(pkgdatadir)/trusted.gpg.d -EXTRA_DIST += src/libostree/README-gpg src/libostree/bupsplit.h +EXTRA_DIST += src/libostree/README-gpg src/libostree/bupsplit.h \ + src/libostree/ostree-enumtypes.h.template \ + src/libostree/ostree-enumtypes.c.template \ + src/libostree/ostree-deployment-private.h install-mkdir-remotes-d-hook: mkdir -p $(DESTDIR)$(sysconfdir)/ostree/remotes.d diff --git a/Makefile-ostree.am b/Makefile-ostree.am index 384479da..76fb26f3 100644 --- a/Makefile-ostree.am +++ b/Makefile-ostree.am @@ -89,6 +89,8 @@ ostree_SOURCES += \ src/ostree/parse-datetime.c: src/ostree/parse-datetime.y Makefile $(AM_V_GEN) $(YACC) $< -o $@ +EXTRA_DIST += src/ostree/parse-datetime.y +CLEANFILES += src/ostree/parse-datetime.c ostree_bin_shared_cflags = $(AM_CFLAGS) -I$(srcdir)/src/libotutil -I$(srcdir)/src/libostree -I$(srcdir)/src/ostree \ $(NULL)