mirror of
https://git.planet-casio.com/Lephenixnoir/GiteaPC.git
synced 2025-04-04 09:37:13 +02:00
Add support for DESTDIR (#2)
Add support for DESTDIR Co-authored-by: Darks <louis@gatin.cloud> Reviewed-on: https://gitea.planet-casio.com/Lephenixnoir/GiteaPC/pulls/2 Co-Authored-By: Darks <pc@gatin.cloud> Co-Committed-By: Darks <pc@gatin.cloud>
This commit is contained in:
parent
b81937ad50
commit
508c70fdcb
1 changed files with 7 additions and 6 deletions
13
Makefile
13
Makefile
|
@ -1,12 +1,13 @@
|
|||
PREFIX ?= $(HOME)/.local
|
||||
VERSION = 1.0
|
||||
DESTDIR ?= ""
|
||||
VERSION = 1.1
|
||||
|
||||
install: $(bin)
|
||||
install -d $(PREFIX)/bin
|
||||
sed -e 's*%PREFIX%*$(PREFIX)*; s*%VERSION%*$(VERSION)*' giteapc.py > $(PREFIX)/bin/giteapc
|
||||
chmod +x $(PREFIX)/bin/giteapc
|
||||
install -d $(PREFIX)/lib/giteapc/giteapc
|
||||
install giteapc/*.py $(PREFIX)/lib/giteapc/giteapc
|
||||
install -d $(DESTDIR)$(PREFIX)/bin
|
||||
sed -e 's*%PREFIX%*$(PREFIX)*; s*%VERSION%*$(VERSION)*' giteapc.py > $(DESTDIR)$(PREFIX)/bin/giteapc
|
||||
chmod +x $(DESTDIR)$(PREFIX)/bin/giteapc
|
||||
install -d $(DESTDIR)$(PREFIX)/lib/giteapc/giteapc
|
||||
install giteapc/*.py $(DESTDIR)$(PREFIX)/lib/giteapc/giteapc
|
||||
|
||||
uninstall:
|
||||
rm -f $(PREFIX)/bin/giteapc
|
||||
|
|
Loading…
Add table
Reference in a new issue