Skip to content

Commit

Permalink
using DESTDIR variable as target folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Ratés committed Dec 27, 2023
1 parent 3e5a80f commit ad5b429
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@ default: build

release :=--release
target :=release
DESTDIR := ~/.local/bin

build:
cargo build $(release)

install-relsease:
cp target/$(target)$(prog) /usr/bin/$(prog)
cp target/$(target)$(prog) $(DESTDIR)/$(prog)
strip /usr/bin/$(prog)

install:
cp target/$(target)/$(prog) ~/.local/bin/$(prog)
strip ~/.local/bin/$(prog)
cp target/$(target)/$(prog) $(DESTDIR)/$(prog)
strip $(DESTDIR)/$(prog)

uninstall:
rm ~/.local/bin/osd
rm $(DESTDIR)/osd

clean:
rm -rf target
Expand Down

0 comments on commit ad5b429

Please sign in to comment.