firejail/src/lib/Makefile
Kelvin M. Klann b963fe41ae Improve errExit error messages
Changes:

* Move msg to the end of errExit (right before perror(3p))
* Include the full file path (within the repository)
* Add "()" to function name for clarity

Before:

    Error malloc: main.c:123 main: Cannot allocate memory

After:

    Error src/firejail/main.c:123 main(): malloc: Cannot allocate memory

Note: This clarifies which is the exact file that the error message
comes from, as there are many source files with the same name.  For
example:

    $ git ls-files 'src/*/main.c' | wc -l
    20
2023-06-28 04:00:13 -03:00

11 lines
138 B
Makefile

.SUFFIXES:
ROOT = ../..
-include $(ROOT)/config.mk
MOD_DIR = src/lib
TARGET = lib
include $(ROOT)/src/prog.mk
.PHONY: lib
lib: $(OBJS)