From 828b4765705755148532217bf090196a497db8e0 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Sun, 28 Jan 2018 18:51:32 -0500 Subject: [PATCH] Add minimal makefile --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Makefile 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