/bin/install: cannot create regular file '/etc/sysconfig/stalld': Permission denied
When compiled with GNU Make 4.4 when make install is called from top-level dir a subcall misses DESTDIR= setting:
+ make install DESTDIR=/usr/src/tmp/stalld-buildroot UNITDIR=/lib/systemd/system USE_BPF=0
...
make -C systemd DESTDIR= install
make[1]: Entering directory '/usr/src/RPM/BUILD/stalld-1.19.3/systemd'
install -m 755 -d /etc/sysconfig
install -p stalld.conf -m 644 /etc/sysconfig/stalld
/bin/install: cannot create regular file '/etc/sysconfig/stalld': Permission denied
make[1]: *** [Makefile:9: install] Error 1
make[1]: Leaving directory '/usr/src/RPM/BUILD/stalld-1.19.3/systemd'
make: *** [Makefile:160: install] Error 2
make: Leaving directory '/usr/src/RPM/BUILD/stalld-1.19.3'
This change to Makefile workarounds the problem:
+INSPATH := $(realpath $(DESTDIR))
-INSPATH := $(DESTDIR)