Skip to content

Commit

Permalink
pkg - Actually set final DESTDIR
Browse files Browse the repository at this point in the history
---

Type: pkg
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Jan 13, 2025
1 parent 96e56d7 commit 95c6e97
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
BINARIES = src/bskyid
MANUALS = src/bskyid.1
DESTDIR = /usr/local

ifndef DESTDIR
FDESTDIR := /usr/local
else
FDESTDIR := $(DESTDIR)/usr
endif

.PHONY: install

install:
mkdir -m 755 -p $(DESTDIR)/bin $(DESTDIR)/share/man/man1/
install -m 755 -t $(DESTDIR)/bin/ $(BINARIES)
install -m 755 -t $(DESTDIR)/share/man/man1/ $(MANUALS)
gzip $(DESTDIR)/share/man/man1/bskyid.1
mkdir -m 755 -p $(FDESTDIR)/bin $(FDESTDIR)/share/man/man1/
install -m 755 -t $(FDESTDIR)/bin/ $(BINARIES)
install -m 644 -t $(FDESTDIR)/share/man/man1/ $(MANUALS)
gzip $(FDESTDIR)/share/man/man1/bskyid.1

# This makefile is just a wrapper for tools scripts.

0 comments on commit 95c6e97

Please sign in to comment.