aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-11-27 04:58:47 +0100
committerMattias Andrée <maandree@operamail.com>2015-11-27 04:58:47 +0100
commit8d257ae0c92e3d9a7f0b593ae1bca7f6a7312084 (patch)
treebc806784a2157fdb67a912a5f004d771ac5c3479
parentimproved readme (diff)
downloadxpybar-8d257ae0c92e3d9a7f0b593ae1bca7f6a7312084.tar.gz
xpybar-8d257ae0c92e3d9a7f0b593ae1bca7f6a7312084.tar.bz2
xpybar-8d257ae0c92e3d9a7f0b593ae1bca7f6a7312084.tar.xz
edit makefile variables
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--Makefile46
1 files changed, 23 insertions, 23 deletions
diff --git a/Makefile b/Makefile
index ee631e4..6038511 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
-PREFIX ?= /usr
-BIN ?= /bin
-BINDIR ?= $(PREFIX)$(BIN)
-DATA ?= /share
-DATADIR ?= $(PREFIX)$(DATA)
-DOC ?= /share
-DOCDIR ?= $(PREFIX)$(DOC)
-LICENSEDIR ?= $(DATADIR)/licenses
+PREFIX = /usr
+BIN = /bin
+DATA = /share
+EXAMPLE = /share
+BINDIR = $(PREFIX)$(BIN)
+DATADIR = $(PREFIX)$(DATA)
+EXAMPLEDIR = $(PREFIX)$(EXAMPLE)
+LICENSEDIR = $(DATADIR)/licenses
PY3_SHEBANG = "/usr/bin/env python3"
@@ -94,23 +94,23 @@ install-all-examples: install-examples install-trick-examples install-plugin-exa
.PHONY: install-examples
install-examples: $(foreach F,$(EXAMPLES),examples/$(F))
- install -dm755 -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples"
- install -m644 $^ -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples"
+ install -dm755 -- "$(DESTDIR)$(EXAMPLEDIR)/$(PKGNAME)/examples"
+ install -m644 $^ -- "$(DESTDIR)$(EXAMPLEDIR)/$(PKGNAME)/examples"
.PHONY: install-trick-examples
install-trick-examples: $(foreach F,$(TRICK_EXAMPLES),examples/tricks/$(F))
- install -dm755 -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples/tricks"
- install -m644 $^ -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples/tricks"
+ install -dm755 -- "$(DESTDIR)$(EXAMPLEDIR)/$(PKGNAME)/examples/tricks"
+ install -m644 $^ -- "$(DESTDIR)$(EXAMPLEDIR)/$(PKGNAME)/examples/tricks"
.PHONY: install-plugin-examples
install-plugin-examples: $(foreach F,$(PLUGIN_EXAMPLES),examples/plugins/$(F))
- install -dm755 -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples/plugins"
- install -m644 $^ -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples/plugins"
+ install -dm755 -- "$(DESTDIR)$(EXAMPLEDIR)/$(PKGNAME)/examples/plugins"
+ install -m644 $^ -- "$(DESTDIR)$(EXAMPLEDIR)/$(PKGNAME)/examples/plugins"
.PHONY: install-plugins
install-plugins: $(foreach F,$(PLUGINS),src/plugins/$(F).py)
- install -dm755 -- "$(DESTDIR)$(DATADIR)/$(PKGNAME)/plugins"
- install -m644 $^ -- "$(DESTDIR)$(DATADIR)/$(PKGNAME)/plugins"
+ install -dm755 -- "$(DESTDIR)$(EXAMPLEDIR)/$(PKGNAME)/plugins"
+ install -m644 $^ -- "$(DESTDIR)$(EXAMPLEDIR)/$(PKGNAME)/plugins"
@@ -122,13 +122,13 @@ uninstall:
-rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/LICENSE.gpl3"
-rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/LICENSE.agpl3"
-rmdir -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)"
- -rm -- $(foreach F,$(PLUGIN_EXAMPLES),"$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples/plugins/$(F)")
- -rmdir -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples/plugins"
- -rm -- $(foreach F,$(TRICK_EXAMPLES),"$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples/tricks/$(F)")
- -rmdir -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples/tricks"
- -rm -- $(foreach F,$(EXAMPLES),"$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples/$(F)")
- -rmdir -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples"
- -rmdir -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)"
+ -rm -- $(foreach F,$(PLUGIN_EXAMPLES),"$(DESTDIR)$(EXAMPLEDIR)/$(PKGNAME)/examples/plugins/$(F)")
+ -rmdir -- "$(DESTDIR)$(EXAMPLEDIR)/$(PKGNAME)/examples/plugins"
+ -rm -- $(foreach F,$(TRICK_EXAMPLES),"$(DESTDIR)$(EXAMPLEDIR)/$(PKGNAME)/examples/tricks/$(F)")
+ -rmdir -- "$(DESTDIR)$(EXAMPLEDIR)/$(PKGNAME)/examples/tricks"
+ -rm -- $(foreach F,$(EXAMPLES),"$(DESTDIR)$(EXAMPLEDIR)/$(PKGNAME)/examples/$(F)")
+ -rmdir -- "$(DESTDIR)$(EXAMPLEDIR)/$(PKGNAME)/examples"
+ -rmdir -- "$(DESTDIR)$(EXAMPLEDIR)/$(PKGNAME)"
-rm -- $(foreach F,$(PLUGINS),"$(DESTDIR)$(DATADIR)/$(PKGNAME)/plugins/$(F)")
-rmdir -- "$(DESTDIR)$(DATADIR)/$(PKGNAME)/plugins"
-rmdir -- "$(DESTDIR)$(DATADIR)/$(PKGNAME)"