summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-19 00:41:19 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-19 00:41:19 +0100
commit3e34126ec0a0bbcfaa1b67eb416123b65cab58fa (patch)
tree4e6df0019f1a574ea5b5194066a1080f75ced095 /Makefile
parentadd examples to makefile (diff)
downloadblueshift-3e34126ec0a0bbcfaa1b67eb416123b65cab58fa.tar.gz
blueshift-3e34126ec0a0bbcfaa1b67eb416123b65cab58fa.tar.bz2
blueshift-3e34126ec0a0bbcfaa1b67eb416123b65cab58fa.tar.xz
fix makefile1.0
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index cc4addb..e0983d3 100644
--- a/Makefile
+++ b/Makefile
@@ -76,18 +76,18 @@ obj/blueshift_randr.c: src/blueshift_randr.pyx
install: install-command install-examples install-license
.PHONY: install-command
-install-command: bin/blueshift_randr.so bin/blueshift
+install-command: bin/blueshift_randr.so bin/blueshift $(foreach D,$(DATAFILES),res/$(D))
install -dm755 -- "$(DESTDIR)$(BINDIR)"
install -m755 bin/blueshift -- "$(DESTDIR)$(BINDIR)/$(COMMAND)"
install -dm755 -- "$(DESTDIR)$(LIBDIR)"
install -m755 bin/blueshift_randr.so -- "$(DESTDIR)$(LIBDIR)/blueshift_randr.so"
install -dm755 -- "$(DESTDIR)$(DATADIR)/$(PKGNAME)"
- install -m644 -- $(DATAFILES) "$(DESTDIR)$(DATADIR)/$(PKGNAME)"
+ install -m644 -- $(foreach D,$(DATAFILES),res/$(D)) "$(DESTDIR)$(DATADIR)/$(PKGNAME)"
.PHONY: install-examples
-install-examples:
+install-examples: $(foreach E,$(EXAMPLES),examples/$(E))
install -dm755 -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples"
- install -m644 $(foreach E,$(EXAMPLES),examples/$(E)) -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples"
+ install -m644 $^ -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples"
.PHONY: install-license
install-license: