Browse Source

update Makefile

sisyphus
Dustin Falgout 8 years ago
parent
commit
e0b775d4d7
  1. 7
      Makefile

7
Makefile

@ -3,6 +3,7 @@
DO := ./build/utils.sh
SET_CONFIG := $(DO) set-config
DESTDIR ?= /
MAYBE_SUDO := ''
define colorecho
@tput setaf 118 || true
@ -16,6 +17,10 @@ decorated := True
stays_on_top := False
endif
ifeq ($(DESTDIR),/)
MAYBE_SUDO := sudo
endif
# Configuration: Use values from command line if provided, default values otherwise.
at_spi_service ?= True
@ -59,7 +64,7 @@ clean:
$(DO) clean
install: build
sudo $(DO) install $(DESTDIR)
$(MAYBE_SUDO) $(DO) install $(DESTDIR)
$(call colorecho, SUCCESS!)

Loading…
Cancel
Save