From 0801a7b37eaf2d8e693bdcd370c394daf6c1163b Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Mon, 6 Feb 2017 05:46:36 -0600 Subject: [PATCH] add Makefile --- Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..619fa87 --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +#!/bin/make -f + +DO=./build/utils.sh +SET_CONFIG=$(DO) set-config + +define colorecho + @tput setaf 118 + @echo $1 + @tput sgr0 +endef + + +all: install + +apply_config: + @# | KEY | VALUE FROM COMMAND LINE | DEFAULT VALUE + @$(SET_CONFIG) background_images_dir '$(background_images_dir)' /usr/share/backgrounds + @$(SET_CONFIG) config_dir '$(config_dir)' /etc/lightdm + @$(SET_CONFIG) greeters_dir '$(greeters_dir)' /usr/share/xgreeters + @$(SET_CONFIG) locale_dir '$(locale_dir)' /usr/share/locale + @$(SET_CONFIG) themes_dir '$(themes_dir)' /usr/share/web-greeter + +build_init: clean + $(DO) build-init + +build: build_init apply_config + $(DO) build + +clean: + $(DO) clean + +install: build + $(DO) install $(DESTDIR) + $(call colorecho, SUCCESS!) +