ugrep
ugrep copied to clipboard
make install fails for out-of-source builds
make install
fails with this error when building in an external directory outside the source tree
make install-data-hook
make[3]: Entering directory 'ugrep/build'
mkdir -p ugrep/install/share/ugrep && \
cp -rf patterns ugrep/install/share/ugrep/
cp: cannot stat 'patterns': No such file or directory
make[3]: *** [Makefile:914: install-data-hook] Error 1
make[3]: Leaving directory 'ugrep/build'
make[2]: *** [Makefile:820: install-data-am] Error 2
make[2]: Leaving directory 'ugrep/build'
make[1]: *** [Makefile:773: install-am] Error 2
make[1]: Leaving directory 'ugrep/build'
make: *** [Makefile:464: install-recursive] Error 1
The reason is this line in Makefile.in
install-data-hook:
mkdir -p $(DESTDIR)$(datadir)/ugrep && \
cp -rf patterns $(DESTDIR)$(datadir)/ugrep/
Thanks for the feedback and contributing!