diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-01-09T21·10+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-01-09T21·10+0100 |
commit | b1db599dd05e86f65e73dc40584913e6e78c2bac (patch) | |
tree | fbd8a4f04bab320661901dd693dae5110c481ebe | |
parent | cf918b889b2ff30d1532a62d00c21007d0cb25cd (diff) |
Generate schema.sql.hh
-rw-r--r-- | src/libstore/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstore/Makefile b/src/libstore/Makefile index 83c5d8ed49b7..dcedd4c26ab8 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) |