git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3528623
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,36 @@
+VERSION = 3.81
+
+all: help
+
+install: init defaults remark
+
+init: has_init
+ @cp -v init.d/infinoted /etc/init.d/
+
+default:
+ @cp -v default/infinoted /etc/default/
+
+has_init:
+ @pidof inits 2>&1 >/dev/null
+
+remark:
+ @echo "You might want to add the script to runlevels after testing. LSB compliant header existing."
+
+uninstall:
+ @rm -v /etc/init.d/infinoted /etc/default/infinoted
+
+.PHONY: help
+
+help:
+ @echo
+ @echo "Syntax : MAKE [target]"
+ @echo
+ @echo "Targets : help\t\t- Displays this help."
+ @echo " install\t- Installs script and compressed manpage."
+ @echo " init\t\t- Installs only the SysVinit script."
+ @echo " default\t- Only installs the file containing the application defaults."
+ @echo " uninstall\t- Deletes all files from your system."
+ @echo
+ @echo "Make sure you have all necessary privileges before doing something :)"
+ @echo "As there's nothing to compile here, a \"make\" or \"make all\" will just fire up this help."
+ @echo