diff options
author | Karel Kočí <cynerd@email.cz> | 2015-09-14 11:45:32 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-09-14 11:45:32 +0200 |
commit | 4ad66ffc6510e66062aa3f6523e51082ef39ce51 (patch) | |
tree | 7f5df8fb0150558da11ea52a46874c2b5057bb7a /Makefile | |
parent | 78d096b2b1f286e15ed12a2789da102fe5849184 (diff) | |
download | linux-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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |