You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
903 B

8 years ago
#!/bin/make -f
8 years ago
DO := ./build/utils.sh
SET_CONFIG := $(DO) set-config
DESTDIR ?= '/'
8 years ago
define colorecho
8 years ago
@tput setaf 118 || true
@echo $1 || true
@tput sgr0 || true
8 years ago
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!)