From fc67f2aa6590bdc0eabfe8a22ebd9a422f6c6a44 Mon Sep 17 00:00:00 2001 From: zeus Date: Mon, 27 Dec 2021 19:34:48 +0200 Subject: [PATCH] makefile --- Makefile | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 31 +++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100755 Makefile diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..df5d284 --- /dev/null +++ b/Makefile @@ -0,0 +1,51 @@ + +DIR:=$(strip $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))) +mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) +current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path)))) +RHOST= + +SHELL := /bin/bash + +.PHONY: create help start stop list clean + +help: + @echo "" ; + @echo "" ; + @echo "--------------" ; + @echo " SwarmLab.io " ; + @echo "--------------" ; + @echo "" ; + @echo " USAGE: make [COMMAND]" ; + @echo "" ; + @echo " Examples of [COMMAND] can be:" ; + @echo " create: create service " ; + @echo "" ; + @echo " start: start service " ; + @echo "" ; + @echo " stop: shutdown service" ; + @echo "" ; + @echo " clean: remove images in the system" ; + @echo "" ; + @echo " list: show running containers of instance" ; + @echo "" ; + @echo " help: show this message" ; + @echo "" ; + @echo "More info:" ; + @echo "http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs/swarmlab/docs/index.html" ; + @echo "" ; + @echo "" ; + +create: + @./install/usr/share/swarmlab.io/sec/swarmlab-sec create 2>/dev/null ; true + +start: + @./install/usr/share/swarmlab.io/sec/swarmlab-sec up 2>/dev/null ; true + +list: + @./install/usr/share/swarmlab.io/sec/swarmlab-sec list 2>/dev/null ; true + +stop: + @./install/usr/share/swarmlab.io/sec/swarmlab-sec down 2>/dev/null ; true + +clean: + @./install/usr/share/swarmlab.io/sec/swarmlab-sec clean 2>/dev/null ; true diff --git a/README.md b/README.md index b93f33f..2d1e111 100644 --- a/README.md +++ b/README.md @@ -40,3 +40,34 @@ https://github.com/twintproject/twint/wiki/Graph > pass +### USAGE cli + +#### help +> +> make help +> + +#### create service +> +> make create +> + +#### start service +> +> make start +> + +#### stop service +> +> make stop +> + +#### list service +> +> make list +> + +#### clean service +> +> make clean +>