mirror of
https://github.com/nwg-piotr/nwg-drawer.git
synced 2024-09-11 14:07:17 +03:00
Added support for DESTDIR and PREFIX variables
This commit is contained in:
parent
3df7a30533
commit
1dbc9283d3
16
Makefile
16
Makefile
@ -1,3 +1,6 @@
|
||||
PREFIX ?= /usr
|
||||
DESTDIR ?=
|
||||
|
||||
get:
|
||||
go get github.com/gotk3/gotk3
|
||||
go get github.com/gotk3/gotk3/gdk
|
||||
@ -14,14 +17,15 @@ build:
|
||||
install:
|
||||
-pkill -f nwg-drawer
|
||||
sleep 1
|
||||
mkdir -p /usr/share/nwg-drawer
|
||||
cp -r desktop-directories /usr/share/nwg-drawer
|
||||
cp drawer.css /usr/share/nwg-drawer
|
||||
cp bin/nwg-drawer /usr/bin
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/share/nwg-dock
|
||||
cp -r desktop-directories $(DESTDIR)$(PREFIX)/share/nwg-drawer
|
||||
cp drawer.css $(DESTDIR)$(PREFIX)/share/nwg-drawer
|
||||
cp bin/nwg-drawer $(DESTDIR)$(PREFIX)/bin
|
||||
|
||||
uninstall:
|
||||
rm -r /usr/share/nwg-drawer
|
||||
rm /usr/bin/nwg-drawer
|
||||
rm -r $(DESTDIR)$(PREFIX)/share/nwg-drawer
|
||||
rm $(DESTDIR)$(PREFIX)/bin/nwg-drawer
|
||||
|
||||
run:
|
||||
go run .
|
||||
|
Loading…
Reference in New Issue
Block a user