Mercurial > octave-nkf
comparison build-aux/common.mk @ 16132:43e6415393ff
build: check for grep in configure and then use it in build process.
* configure.ac: Add call to AC_PROG_GREP.
* build-aux/common.mk: substitute environment variable GREP with
value from configure. Use $(GREP) in commands.
* build-aux/find-files-with-tests.sh: use $(GREP) instead of
grep in commands.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 26 Feb 2013 16:52:33 -0800 |
parents | b309a5da17f5 |
children | 98b211a163ce |
comparison
equal
deleted
inserted
replaced
16131:e125db98263f | 16132:43e6415393ff |
---|---|
1 CROSS_TOOL_PREFIX = @CROSS_TOOL_PREFIX@ | 1 CROSS_TOOL_PREFIX = @CROSS_TOOL_PREFIX@ |
2 | 2 |
3 AWK = @AWK@ | 3 AWK = @AWK@ |
4 export AWK | 4 export AWK |
5 | 5 |
6 GREP = @GREP@ | |
7 export GREP | |
8 | |
9 FIND = @FIND@ | |
10 export FIND | |
11 | |
6 SED = @SED@ | 12 SED = @SED@ |
7 export SED | 13 export SED |
8 | |
9 FIND = @FIND@ | |
10 export FIND | |
11 | 14 |
12 PERL = @PERL@ | 15 PERL = @PERL@ |
13 export PERL | 16 export PERL |
14 | 17 |
15 PYTHON = @PYTHON@ | 18 PYTHON = @PYTHON@ |
729 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD | 732 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD |
730 -rmdir $(DESTDIR)$(fcnfiledir)/$(script_sub_dir) | 733 -rmdir $(DESTDIR)$(fcnfiledir)/$(script_sub_dir) |
731 endef | 734 endef |
732 | 735 |
733 define test-file-commands | 736 define test-file-commands |
734 ( echo "## DO NOT EDIT! Generated automatically from $(<F) by Make."; grep '^%!' $< ) > $@-t | 737 ( echo "## DO NOT EDIT! Generated automatically from $(<F) by Make."; $(GREP) '^%!' $< ) > $@-t |
735 mv $@-t $@ | 738 mv $@-t $@ |
736 endef | 739 endef |
737 | 740 |
738 %.cc-tst : %.cc | 741 %.cc-tst : %.cc |
739 $(test-file-commands) | 742 $(test-file-commands) |