-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92baf40
commit 8c57dc7
Showing
8 changed files
with
15,408 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
prefix = /usr/local | ||
exec_prefix = $(prefix) | ||
bindir = $(exec_prefix)/bin | ||
datarootdir = $(prefix)/share | ||
docdir = $(datarootdir)/doc/ccache | ||
mandir = $(datarootdir)/man | ||
man1dir = $(mandir)/man1 | ||
sysconfdir = $(prefix)/etc | ||
|
||
default_sysconfdir = /usr/local/etc | ||
doc_files = LICENSE.html MANUAL.html NEWS.html GPL-3.0.txt LICENSE.adoc README.md | ||
|
||
PYTHON = python3 | ||
|
||
all: | ||
@echo "Available make targets:" | ||
@echo | ||
@echo " install [prefix=...] [DESTDIR=...]" | ||
@echo | ||
@echo "Default prefix: $(prefix)" | ||
|
||
install: | ||
mkdir -p "$(DESTDIR)$(bindir)" | ||
$(PYTHON) -c 'import sys; sysconfdir = b"$(sysconfdir)"; default_sysconfdir = b"$(default_sysconfdir)"; sys.stdout.buffer.write(sys.stdin.buffer.read().replace(default_sysconfdir + b"\x00" * (4096 - len(default_sysconfdir)), sysconfdir + b"\x00" * (4096 - len(sysconfdir))))' <ccache >"$(DESTDIR)$(bindir)/ccache" | ||
chmod +x "$(DESTDIR)$(bindir)/ccache" | ||
|
||
mkdir -p "$(DESTDIR)$(docdir)" | ||
cp $(doc_files) "$(DESTDIR)$(docdir)" | ||
|
||
mkdir -p "$(DESTDIR)$(man1dir)" | ||
cp ccache.1 "$(DESTDIR)$(man1dir)" |
Oops, something went wrong.