aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-03-16 19:31:45 +0100
committerMattias Andrée <maandree@operamail.com>2015-03-16 19:31:45 +0100
commitaa29b8dd8ca5d2a9f67f3e423367f81f9429e39f (patch)
treedfe7c386fa639a38ff1ea776539456afbdd28065 /Makefile
parentupdate todo (diff)
downloadxpybar-aa29b8dd8ca5d2a9f67f3e423367f81f9429e39f.tar.gz
xpybar-aa29b8dd8ca5d2a9f67f3e423367f81f9429e39f.tar.bz2
xpybar-aa29b8dd8ca5d2a9f67f3e423367f81f9429e39f.tar.xz
add examples: localutcclock, anytzclock
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 661d702..1520819 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,8 @@ PLUGIN_EXAMPLES = chase clock cpu cpuinfo cpuonline df discstats \
dentrystate inodestate files tzclock ropty ping \
inotify
+TRICK_EXAMPLES = localutcclock anytzclock
+
EXAMPLES = mixed moderate test xmonad
@@ -86,13 +88,18 @@ install-license: COPYING LICENSE.gpl3 LICENSE.agpl3
install -m644 $^ -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)"
.PHONY: install-all-examples
-install-all-examples: install-examples install-plugin-examples
+install-all-examples: install-examples install-trick-examples install-plugin-examples
.PHONY: install-examples
install-examples: $(foreach F,$(EXAMPLES),examples/$(F))
install -dm755 -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples"
install -m644 $^ -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples"
+.PHONY: install-trick-examples
+install-trick-examples: $(foreach F,$(EXAMPLES),examples/tricks/$(F))
+ install -dm755 -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples/tricks"
+ install -m644 $^ -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples/tricks"
+
.PHONY: install-plugin-examples
install-plugin-examples: $(foreach F,$(PLUGIN_EXAMPLES),examples/plugins/$(F))
install -dm755 -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples/plugins"
@@ -115,6 +122,8 @@ uninstall:
-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)"