From 1ffe28ca0ef8eab3dc1528d4f035377591935466 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 14 Mar 2016 16:03:38 +1300 Subject: Add proper version field to theme file --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile') 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' $^ > $@ -- cgit v1.1 From 6bd10915ee2fdaac0fa41199dd095c3f6c02c027 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 14 Mar 2016 16:11:56 +1300 Subject: Makefile installation fix --- Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a30c6fc..c40d9b0 100644 --- a/Makefile +++ b/Makefile @@ -2,24 +2,21 @@ PREFIX=/usr/ DESTDIR= VERSION=1.0 - THEME_FILES=\ index.html \ index.theme \ petrichor.js \ - petrichor.css \ - bg.jpg \ - iec5009.svg \ - drop-down.svg + petrichor.css .PHONY: all install all: $(THEME_FILES) -install: +install: all for f in $(THEME_FILES) ; do \ install -Dm 644 "$$f" -t "$(DESTDIR)/$(PREFIX)/share/lightdm-webkit/themes/petrichor/" ; \ done + cp -r image "$(DESTDIR)/$(PREFIX)/share/lightdm-webkit/themes/petrichor/" install -Dm 644 LICENSE "$(DESTDIR)/$(PREFIX)/share/licenses/petrichor/LICENSE" clean: -- cgit v1.1