Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
4eace14d
Commit
4eace14d
authored
Mar 11, 2018
by
Albert Gräf
Browse files
Edit library paths in the installed default.settings file on the fly.
parent
8f911252
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
4eace14d
...
...
@@ -50,11 +50,9 @@
.PHONY
:
all incremental checkout clean realclean dist
# Installation prefix under which Pd-l2ork is installed (Linux only). If this
# isn't set, a default location will be used (usually /usr/local). NOTE: The
# default prefs file assumes /usr, if you choose anything else then you'll
# have to edit $prefix/lib/pd-l2ork/default.settings accordingly. Also note
# that we *always* assume that this variable is set properly in the install
# targets (see below).
# isn't set, a default location will be used (usually /usr/local). NOTE: We
# *always* assume that this variable is set properly in the install targets
# (see below).
prefix
=
/usr
ifneq
($(prefix),)
...
...
@@ -95,8 +93,8 @@ realclean:
# Note that these targets simply (un)install whatever is in the
# packages/*/build directory at the time they're invoked, so you need to run
# `make` (or `make incremental`, etc.) first. Also note that
the extra
cruft
# under build/etc (
except for
the bash auto-completions) isn't installed as it
# `make` (or `make incremental`, etc.) first. Also note that
some old
cruft
# under build/etc (
all but
the bash auto-completions) isn't installed as it
# isn't needed on modern Linux systems any more.
builddir
=
$(
firstword
$(
wildcard
packages/
*
/build
))
...
...
@@ -105,6 +103,9 @@ manifest = etc/bash_completion.d/pd-l2ork $(prefix:/%=%)/include/pd-l2ork $(pref
install
:
test
-z
"
$(DESTDIR)
"
||
(
rm
-rf
"
$(DESTDIR)
"
&&
mkdir
-p
"
$(DESTDIR)
"
)
tar
-c
-C
$(builddir)
$(manifest)
|
tar
-x
-C
$(DESTDIR)
/
# Edit the library paths in the default user.settings file so that it matches
# our installation prefix.
test
-f
"$(DESTDIR)"
$(prefix)/lib/pd-l2ork/default.settings
&&
cd
"$(DESTDIR)"
$(prefix)/lib/pd-l2ork
&&
sed
-e
"s!/usr/lib/pd-l2ork!$(prefix)/lib/pd-l2ork!g"
-i
default.settings
||
true
uninstall
:
rm
-rf
$(
addprefix
$(DESTDIR)
/,
$(manifest)
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment