Skip to content

Commit

Permalink
scalar: allow installing the command
Browse files Browse the repository at this point in the history
Now that we implemented Scalar's core functionality, let's offer users
the option to install the command via `make -C contrib/scalar install`.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Sep 19, 2022
1 parent 6caab7b commit 268fce8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion contrib/scalar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,14 @@ clean:
test: all
$(MAKE) -C t

.PHONY: $(GITLIBS) all clean test FORCE
INSTALL = install
prefix = $(HOME)
bindir = $(prefix)/bin
DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
bindir_SQ = $(subst ','\'',$(bindir))

install:
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(bindir_SQ)'
$(INSTALL) scalar$(X) '$(DESTDIR_SQ)$(bindir_SQ)'

.PHONY: $(GITLIBS) all clean test install FORCE

0 comments on commit 268fce8

Please sign in to comment.