aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-09-14 11:45:32 +0200
committerKarel Kočí <cynerd@email.cz>2015-09-14 11:45:32 +0200
commit4ad66ffc6510e66062aa3f6523e51082ef39ce51 (patch)
tree7f5df8fb0150558da11ea52a46874c2b5057bb7a
parent78d096b2b1f286e15ed12a2789da102fe5849184 (diff)
downloadlinux-conf-perf-4ad66ffc6510e66062aa3f6523e51082ef39ce51.tar.gz
linux-conf-perf-4ad66ffc6510e66062aa3f6523e51082ef39ce51.tar.bz2
linux-conf-perf-4ad66ffc6510e66062aa3f6523e51082ef39ce51.zip
Add makefile target psql
This new target allows direct access to database wit parameters set in conf.py and conf.py of selected target. This is simple fast access to database.
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 54c4236..35d85a3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: all help parse_kconfig write_config build run test clean clean_db clean_database clean_measure clean_linux clean_buildroot mlinux mbuildroot deflinux distclean_linux distclean_buildroot distclean picosat init initialize initialize_database initdb
+.PHONY: all help parse_kconfig write_config build run test clean clean_db clean_database clean_measure clean_linux clean_buildroot mlinux mbuildroot deflinux distclean_linux distclean_buildroot distclean picosat init initialize initialize_database initdb psql
-include .conf.mk
@@ -31,6 +31,9 @@ help:
@echo "clean_buildroot - Executes 'make clean' in buildroot folder."
@echo "distclean_buildroot - Executes 'make distclean' in buildroot folder."
+psql:
+ PGPASSWORD="$(CONF_DB_PASSWORD)" psql -d "$(CONF_DB_DATABASE)" -h "$(CONF_DB_HOST)" -p "$(CONF_DB_PORT)"
+
mbuildroot: buildroot/.config buildroot/system/skeleton/usr/bin/linux-conf-perf
$(MAKE) -C buildroot menuconfig