ugrep icon indicating copy to clipboard operation
ugrep copied to clipboard

make install fails for out-of-source builds

Open zmajeed opened this issue 2 years ago • 0 comments

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/

zmajeed avatar Aug 10 '22 12:08 zmajeed

Thanks for the feedback and contributing!

genivia-inc avatar Aug 12 '22 17:08 genivia-inc