git-wad

Manage files via git but not their content
git clone git://git.meso-star.fr/git-wad.git
Log | Files | Refs | README | LICENSE

commit 9622b3bc0101d17107d19cebb8e3844d5c7f1aa2
parent 1a37fb2c0454107f6962c06adaa48aad565ee9af
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed,  2 Oct 2024 12:18:35 +0200

Improve the Makefile

Add the MANPREFIX macro, as distributions or administrators can use a
different location for the man page than that defined for other files
through the PREFIX macro.

Explicitly define rights on installed files, as no one can assume that
the original rights are retained after copying.

Diffstat:
MMakefile | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -18,6 +18,7 @@ # Default install directory PREFIX = /usr/local +MANPREFIX = $(PREFIX)/share/man # Nothing to do default: @@ -25,8 +26,10 @@ default: install: mkdir -p $(DESTDIR)$(PREFIX)/bin/ cp git-wad $(DESTDIR)$(PREFIX)/bin/ - mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1 - cp git-wad.1 $(DESTDIR)$(PREFIX)/share/man/man1 + chmod 755 $(DESTDIR)$(PREFIX)/bin/git-wad + mkdir -p $(DESTDIR)$(MANPREFIX)/man1 + cp git-wad.1 $(DESTDIR)$(MANPREFIX)/man1 + chmod 644 $(DESTDIR)$(MANPREFIX)/man1/git-wad.1 uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/git-wad