Skip to content

Commit a565a8f

Browse files
tacerusbagder
authored andcommitted
make: switch to install and copy manpage
- use `install` instead of `cp` to create leading directories should they not yet exist - install manpage to have documentation present along with the binary Signed-off-by: Georg Pfuetzenreuter <[email protected]>
1 parent 099329f commit a565a8f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@
1616
#
1717
##########################################################################
1818
# default installation directory
19-
INSTALLDIR=/usr/local/bin
19+
PREFIX=/usr/local
20+
BINDIR=$(PREFIX)/bin
21+
MANDIR=$(PREFIX)/man
2022

2123
all:
2224

2325
install:
24-
cp roffit $(DESTDIR)$(INSTALLDIR)
26+
install -Dm0755 roffit $(DESTDIR)$(BINDIR)/roffit
27+
install -Dm0644 roffit.1 $(DESTDIR)$(MANDIR)/man1/roffit.1
2528

2629
test:
2730
@perl roffit --bare < testpage.1 > testpage.dump

0 commit comments

Comments
 (0)