Skip to content

Commit

Permalink
Allow custom man page destination
Browse files Browse the repository at this point in the history
different distro's store man pages in different paths, this allows for a user defined destination with `make install MANDIR=<path>` default is `usr/local/share`
  • Loading branch information
nick-child-ibm authored and erichte-ibm committed Jan 20, 2021
1 parent ec0ee0d commit a2d3f9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ OBJ +=$(SKIBOOT_OBJ) $(EXTRAMBEDTLS)

OBJCOV = $(patsubst %.o, %.cov.o,$(OBJ))


MANDIR=usr/local/share/
#use STATIC=1 for static build
STATIC = 0
ifeq ($(STATIC),1)
Expand Down Expand Up @@ -72,6 +72,6 @@ secvarctl-cov: $(OBJCOV)
install: secvarctl
mkdir -p $(DESTDIR)/usr/bin
install -m 0755 secvarctl $(DESTDIR)/usr/bin/secvarctl
mkdir -p $(DESTDIR)/usr/local/share/man
mkdir -p $(DESTDIR)/usr/local/share/man/man1
install -m 0755 secvarctl.1 $(DESTDIR)/usr/local/share/man/man1
mkdir -p $(DESTDIR)/$(MANDIR)/man
mkdir -p $(DESTDIR)/$(MANDIR)/man/man1
install -m 0755 secvarctl.1 $(DESTDIR)/$(MANDIR)/man/man1

0 comments on commit a2d3f9a

Please sign in to comment.