Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (41 sloc) 1.68 KB
#
# Makefile for geany-themes development
#
THEMES = $(wildcard colorschemes/*.conf)
COLORSCHEME_DIR = ${HOME}/.config/geany/colorschemes
UNINSTALL_THEMES = $(addprefix $(COLORSCHEME_DIR)/, $(notdir $(THEMES)))
GEANY_VERSION = $(shell pkg-config --modversion geany 2>/dev/null)
THEMES_VERSION = 1.22
MISMATCH_MESSAGE = Warning: Possible wrong version of Geany installed
ARCHIVE_NAME = geany-themes-$(THEMES_VERSION).tar.bz2
ARCHIVE_TEMP_DIR = geany-themes-$(THEMES_VERSION)
# dummy rule to handle default case, doesn't do anything useful
all:
@test "$(GEANY_VERSION)" = "$(THEMES_VERSION)" || echo "$(MISMATCH_MESSAGE)"
@echo "Nothing to do, use \`make install' instead."
install:
@test "$(GEANY_VERSION)" = "$(THEMES_VERSION)" || echo "$(MISMATCH_MESSAGE)"
mkdir -p $(COLORSCHEME_DIR)
install -m 0644 $(THEMES) "$(COLORSCHEME_DIR)"
uninstall:
@test "$(GEANY_VERSION)" = "$(THEMES_VERSION)" || echo "** $(MISMATCH_MESSAGE)"
# NOTE: leave straggling directory ~/.config/geany/colorschemes this is for
# safety in case there's other stuff in there.
rm -f $(UNINSTALL_THEMES)
indices:
make -C scripts indices
colorsnormal:
python scripts/colornorm.py $(THEMES)
usedefaults:
python scripts/defaultify.py $(THEMES)
clean:
make -C scripts clean
ChangeLog:
git --no-pager log --format="%ai %aN %n%n%x09* %s%n" > ChangeLog
dist: $(THEMES) README.md Makefile ChangeLog AUTHORS COPYING
mkdir -p geany-themes-$(THEMES_VERSION)/colorschemes/
cp colorschemes/*.conf $(ARCHIVE_TEMP_DIR)/colorschemes/
cp AUTHORS COPYING README.md ChangeLog $(ARCHIVE_TEMP_DIR)/
tar -cjf $(ARCHIVE_NAME) $(ARCHIVE_TEMP_DIR)/
rm -rf $(ARCHIVE_TEMP_DIR) ChangeLog
.PHONY: all install uninstall dist ChangeLog index clean
Something went wrong with that request. Please try again.