summaryrefslogtreecommitdiff
path: root/data/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'data/Makefile')
-rw-r--r--data/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/data/Makefile b/data/Makefile
new file mode 100644
index 0000000..ce0a2d3
--- /dev/null
+++ b/data/Makefile
@@ -0,0 +1,28 @@
+SOUNDS_DIR = ~/.compiz/sounds/default
+
+ECHO = `which echo`
+
+all:
+ @if \
+ ! [ -s new.ogg ] || \
+ ! [ -s moveleft.ogg ] || \
+ ! [ -s moveright.ogg ] || \
+ ! [ -s moveup.ogg ] || \
+ ! [ -s movedown.ogg ]; \
+ then \
+ $(ECHO) -e -n "\033[0;32mPlease replace the empty Ogg Vorbis files with ones of your own.\n\033[0m"; \
+ exit 0; \
+ fi;
+
+clean:
+
+install:
+ @$(ECHO) -e -n "\033[0;34m";
+ @mkdir -p $(SOUNDS_DIR)
+ @cp -v *.ogg $(SOUNDS_DIR)
+ @$(ECHO) -e -n "\033[0m";
+
+uninstall:
+ @$(ECHO) -e -n "\033[0;34m";
+ @rm -rvf $(SOUNDS_DIR)/*.ogg
+ @$(ECHO) -e -n "\033[0m";