aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 0 insertions, 29 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 3fb13be..0000000
--- a/Makefile
+++ /dev/null
@@ -1,29 +0,0 @@
-.PHONY: all
-
-all: clean build
-
-clean:
- $(RM) -rv build/ out/ *.class
- $(RM) -rv /usr/bin/kloud/
- $(RM) -rv /usr/share/kloud/kloud-*-all.jar
-
-build:
- gradle build
- @echo Success! The .jar file should be in build/libs/. You may want to use \'sudo make install\' now.
-
-install:
-ifdef OS
- @echo Kloud can't be installed on Windows currently, please execute the jar file manually
-else
- ifeq ($(shell uname), Linux)
- mkdir -p /usr/share/kloud/
- userdel kloud || true
- useradd -r -d /usr/share/kloud kloud || true
- chown -R kloud /usr/share/kloud
- cp build/libs/kloud-*-all.jar /usr/share/kloud/
- echo -e "#!/bin/sh\nsudo -u kloud java -jar /usr/share/kloud/kloud-*-all.jar \$$@" > /usr/bin/kloud
- chmod +x /usr/bin/kloud
- else
- @echo This OS doesn't support automatic installation, please execute the jar file manually
- endif
-endif