Browse Source

Add support for DESTDIR (#2)

Add support for DESTDIR

Co-authored-by: Darks <louis@gatin.cloud>
Reviewed-on: #2
Co-Authored-By: Darks <pc@gatin.cloud>
Co-Committed-By: Darks <pc@gatin.cloud>
master 1.1
Darks 2 months ago
committed by Lephenixnoir
parent
commit
508c70fdcb
1 changed files with 7 additions and 6 deletions
  1. +7
    -6
      Makefile

+ 7
- 6
Makefile View File

@ -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…
Cancel
Save