Add a Makefile to build an SQLite-compatible schema

Allow for automatically converting the schema into a schema that works
with SQLite by running `make` from the schema/ subdirectory. Use the new
Makefile in the test suite.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2017-03-01 20:12:57 +01:00
parent 48f2837525
commit da4bd3b59e
3 changed files with 18 additions and 10 deletions

View file

@ -1,6 +1,10 @@
FOREIGN_TARGETS = ../schema/aur-schema-sqlite.sql
T = $(sort $(wildcard t[0-9][0-9][0-9][0-9]-*.sh))
check: $(T)
check: $(FOREIGN_TARGETS) $(T)
$(FOREIGN_TARGETS):
$(MAKE) -C $(dir $@) $(notdir $@)
clean:
$(RM) -r test-results/
@ -8,4 +12,4 @@ clean:
$(T):
@echo "*** $@ ***"; $(SHELL) $@
.PHONY: check clean $(T)
.PHONY: check $(FOREIGN_TARGETS) clean $(T)