summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Barisione <marco@barisione.org>2011-11-22 16:26:53 (GMT)
committerMarco Barisione <marco@barisione.org>2011-11-22 16:26:53 (GMT)
commite3cbad7637b7f70f4015ef6c769ae8b582060350 (patch)
tree46dc349d2de5decd23bfb1321446ebce58ec9fa8
parentb1f59aa67ef329111f9d6363e9d995bca4805bc7 (diff)
downloadshell-message-notifier-e3cbad7637b7f70f4015ef6c769ae8b582060350.tar.gz
shell-message-notifier-e3cbad7637b7f70f4015ef6c769ae8b582060350.tar.xz
Add a simple Makefile
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..01d23e7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+EXT_DIR="$(HOME)/.local/share/gnome-shell/extensions"
+UUID=`cat metadata.json | grep uuid | sed -e 's/^\s*"uuid":\s*"\([^"]*\)",$$/\1/'`
+FILES="README extension.js stylesheet.css metadata.json"
+
+all:
+
+install:
+ mkdir -p $(EXT_DIR)/$(UUID)
+ for f in "$(FILES)"; do \
+ cp -f $$f $(EXT_DIR)/$(UUID)/$$f; \
+ done
+
+uninstall:
+ for f in "$(FILES)"; do \
+ rm $(EXT_DIR)/$(UUID)/$$f; \
+ done
+ rmdir $(EXT_DIR)/$(UUID)
+