Permalink
Browse files

build: fix out-of-tree build/installs.

When doing an out-of-tree install, gource.1 is not on the work
directory so make sure to use $(srcdir) there.
  • Loading branch information...
1 parent 46c1bee commit b3988fd6ff55b8fb979b1e6196d0bd48ffa36904 @Flameeyes Flameeyes committed Mar 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 Makefile.am
View
@@ -65,8 +65,8 @@ shadersdir = $(pkgdatadir)/shaders
dist_shaders_DATA = data/shaders/shadow.vert data/shaders/shadow.frag data/shaders/bloom.vert data/shaders/bloom.frag data/shaders/text.vert data/shaders/text.frag
install-data-hook:
- mkdir -p -m 755 ${DESTDIR}/$(mandir)/man1
- gzip -cf9 data/gource.1 > $(DESTDIR)$(mandir)/man1/gource.1.gz
+ $(MKDIR_P) $(DESTDIR)$(mandir)/man1
+ gzip -cf9 $(srcdir)/data/gource.1 > $(DESTDIR)$(mandir)/man1/gource.1.gz
uninstall-hook:
rm -f $(DESTDIR)$(mandir)/man1/gource.1.gz

0 comments on commit b3988fd

Please sign in to comment.