Compare commits

..

2 Commits

Author SHA1 Message Date
e18136e43c Makefile: create parent directories if not exists.
Signed-off-by: Nicolas A. Ortega Froysa <nicolas.ortega@babelgroup.com>
2024-05-21 15:41:36 +02:00
d692d4aa59 Makefile: Fix PREFIX handling.
Signed-off-by: Nicolas A. Ortega Froysa <nicolas.ortega@babelgroup.com>
2024-05-21 15:41:36 +02:00

View File

@ -20,7 +20,9 @@
# 3. This notice may not be removed or altered from any source # 3. This notice may not be removed or altered from any source
# distribution. # distribution.
PREFIX=/usr/local ifeq ($(PREFIX),)
PREFIX := /usr/local
endif
pacundo: pacundo.pl pacundo: pacundo.pl
pp -o $@ $^ pp -o $@ $^
@ -35,5 +37,7 @@ clean:
$(RM) pacundo.1.gz $(RM) pacundo.1.gz
install: pacundo pacundo.1.gz install: pacundo pacundo.1.gz
install -d $(PREFIX)/bin
install -m 755 pacundo $(PREFIX)/bin/ install -m 755 pacundo $(PREFIX)/bin/
install -d $(PREFIX)/share/man/man1
install -m 644 pacundo.1.gz $(PREFIX)/share/man/man1/ install -m 644 pacundo.1.gz $(PREFIX)/share/man/man1/