From b1db599dd05e86f65e73dc40584913e6e78c2bac Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 9 Jan 2014 22:10:35 +0100 Subject: [PATCH] Generate schema.sql.hh --- src/libstore/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libstore/Makefile b/src/libstore/Makefile index 83c5d8ed4..dcedd4c26 100644 --- a/src/libstore/Makefile +++ b/src/libstore/Makefile @@ -19,3 +19,8 @@ libstore_CXXFLAGS = \ -DNIX_LIBEXEC_DIR=\"$(libexecdir)\" \ -DNIX_BIN_DIR=\"$(bindir)\" \ -DPACKAGE_VERSION=\"$(PACKAGE_VERSION)\" + +$(d)/local-store.cc: $(d)/schema.sql.hh + +%.sql.hh: %.sql + sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/' < $< > $@ || (rm $@ && exit 1)