summaryrefslogtreecommitdiffstats
path: root/schema/Makefile
blob: e0448adde250a36e7504c08f5ded9affde8fc860 (plain)
1
2
3
4
5
6
7
8
9
10
11
aur-schema-sqlite.sql: aur-schema.sql
	sed \
		-e 's/ ENGINE = InnoDB//' \
		-e 's/ [A-Z]* UNSIGNED NOT NULL AUTO_INCREMENT/ INTEGER NOT NULL/' \
		-e 's/([0-9, ]*) UNSIGNED / UNSIGNED /' \
		$< >$@

clean:
	rm -rf aur-schema-sqlite.sql

.PHONY: clean