aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-03-14 16:03:38 +1300
committerDavid Phillips <dbphillipsnz@gmail.com>2016-03-14 16:03:38 +1300
commit1ffe28ca0ef8eab3dc1528d4f035377591935466 (patch)
tree7d1c0f79eaf3a786f56557c2535e4f59c6d32c8d
parentde912d9ec2ca81821d4587d523dcaa023a339573 (diff)
downloadpetrichor-1ffe28ca0ef8eab3dc1528d4f035377591935466.tar.xz
Add proper version field to theme file
-rw-r--r--Makefile10
-rw-r--r--index.theme.in (renamed from index.theme)2
2 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 889509f..a30c6fc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
PREFIX=/usr/
DESTDIR=
+VERSION=1.0
+
THEME_FILES=\
index.html \
@@ -10,8 +12,9 @@ THEME_FILES=\
iec5009.svg \
drop-down.svg
-all:
+.PHONY: all install
+all: $(THEME_FILES)
install:
for f in $(THEME_FILES) ; do \
@@ -19,3 +22,8 @@ install:
done
install -Dm 644 LICENSE "$(DESTDIR)/$(PREFIX)/share/licenses/petrichor/LICENSE"
+clean:
+ rm index.theme
+
+index.theme: index.theme.in
+ sed -e 's/{VERSION}/$(VERSION)/g' $^ > $@
diff --git a/index.theme b/index.theme.in
index 13639be..c1e6a14 100644
--- a/index.theme
+++ b/index.theme.in
@@ -1,6 +1,6 @@
[theme]
name=Petrichor
-version=1.0
+version={VERSION}
description=Petrichor Theme
engine=lightdm-webkit2-greeter
url=index.html