PREFIX=/usr/ DESTDIR= VERSION=1.0 THEME_FILES=\ index.html \ index.theme \ petrichor.js \ petrichor.css \ bg.jpg \ iec5009.svg \ drop-down.svg .PHONY: all install all: $(THEME_FILES) install: for f in $(THEME_FILES) ; do \ install -Dm 644 "$$f" -t "$(DESTDIR)/$(PREFIX)/share/lightdm-webkit/themes/petrichor/" ; \ 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' $^ > $@