diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b818515 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +PREFIX= +ALTERNC_BASE_PATH ?= /usr/share/alternc/panel/ +CSS_IDENTIFIER = "/*** alternc-oneclickinstaller ***/" + +install: + cp -r src/ $(PREFIX)/$(ALTERNC_BASE_PATH) + C := $(grep -q "$(CSS_IDENTIFIER)" ; echo $$?) + ifneq ($(C), 0) + cat css/style-custom.css >> $(PREFIX)/$(ALTERNC_BASE_PATH)/admin/styles/style-custom.css + endif