[PATCH 5/6] Add install target

2019-01-11 Thread Luis Machado
The following patch adds an install target so we can install the utils/scripts somewhere. The default prefix is /opt/pm-qa. 2019-01-11 Luis Machado * Makefile (prefix, SRC, EXEC, SUBDIRS, INSTALL_FILES): New variables. (install): New target. * README: Document install t

[PATCH 6/6] Add missing phony targets

2019-01-11 Thread Luis Machado
The following patch adds some missing phony targets. 2019-01-11 Luis Machado * Makefile: New phony target list. * Test.mk: Likewise. Signed-off-by: Luis Machado --- Makefile | 2 ++ Test.mk | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 6c0

[PATCH 4/6] Adjust compiler flag variables

2019-01-11 Thread Luis Machado
In order to pass additional compiler flags while still keeping the required flags intact (-pthread for example), we add a local set of flags on top of the exsiting CFLAGS. 2019-01-11 Luis Machado * Test.mk (CFLAGS): Set to "-g -Wall" (FLAGS): New variable. Set to -pthread.

[PATCH 3/6] Invoke scripts with sudo

2019-01-11 Thread Luis Machado
We were requiring the user to run the whole makefile as sudo. The following patch uses sudo to call the sanity check scripts and the functional tests only. 2019-01-11 Luis Machado * Test.mk: Invoke sanity tests and functional tests with sudo. Signed-off-by: Luis Machado --- Test.mk

[PATCH 2/6] Remove utils/utils_sanity.sh

2019-01-11 Thread Luis Machado
This sanity check is a dummy one. It doesn't check anything at the moment, so deleting it seems to be appropriate. 2019-01-11 Luis Machado * utils/utils_sanity.sh: Remove. Signed-off-by: Luis Machado --- utils/utils_sanity.sh | 39 --- 1 file chan

[PATCH 1/6] Make the default target only build the utils

2019-01-11 Thread Luis Machado
The following patch adjusts the main Makefile and secondary Makefile (Test.mk) so the default target only builds the pm-qa utils from sources, without running the tests. Also document some variables and targets. 2018-01-11 Luis Machado * Makefile: Document target "all". * READ

[PATCH 0/6] Improve pm-qa's build system series

2019-01-11 Thread Luis Machado
Hi, For the sake of keeping things organized and easier to review, i've broken up the previous change into smaller pieces. Luis Machado (6): Make the default target only build the utils Remove utils/utils_sanity.sh Invoke scripts with sudo Adjust compiler flag variables Add install targ