diff options
| author | Helmut Eller | 2025-09-22 16:56:02 +0200 |
|---|---|---|
| committer | Helmut Eller | 2025-09-22 16:56:02 +0200 |
| commit | 1507199e3573d7786991d181d06885d82999c3b2 (patch) | |
| tree | 04732e313a5ff1eef5cc0159bc483225158fe7ed /mps/configure.ac | |
| parent | a97f6d888fcb34b416a64724e67b7d7e77df6f68 (diff) | |
| download | emacs-scratch/mps-import2.tar.gz emacs-scratch/mps-import2.zip | |
Support out-of-tree buildsscratch/mps-import2
* mps/example/scheme/Makefile.in (VPATH): Set VPATH.
* mps/Makefile.in (COMMON_OPTS): New. Pass SRCDIR down to sub-make.
* mps/code/comm.gmk (VPATH): Set VPATH from SRCDIR parameter
* mps/configure.ac (AC_CONFIG_COMMANDS): Copy .gmk makefiles and some
other things to the biuld directory.
Diffstat (limited to 'mps/configure.ac')
| -rw-r--r-- | mps/configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mps/configure.ac b/mps/configure.ac index 0cbf640fdcb..18c8a1494c0 100644 --- a/mps/configure.ac +++ b/mps/configure.ac | |||
| @@ -193,6 +193,20 @@ AC_SUBST(LDFLAGS) | |||
| 193 | AC_SUBST(CPPFLAGS) | 193 | AC_SUBST(CPPFLAGS) |
| 194 | AC_CONFIG_FILES(Makefile example/scheme/Makefile) | 194 | AC_CONFIG_FILES(Makefile example/scheme/Makefile) |
| 195 | 195 | ||
| 196 | AC_CONFIG_COMMANDS( | ||
| 197 | [gmk], | ||
| 198 | [case $srcdir in | ||
| 199 | .) # in-place build | ||
| 200 | ;; | ||
| 201 | *) echo "copying .gmk files" | ||
| 202 | (cd $srcdir && | ||
| 203 | cp --parents code/*.gmk \ | ||
| 204 | tool/testcases.txt tool/testrun.sh \ | ||
| 205 | example/scheme/*.scm \ | ||
| 206 | $ac_pwd) | ||
| 207 | ;; | ||
| 208 | esac]) | ||
| 209 | |||
| 196 | AC_OUTPUT | 210 | AC_OUTPUT |
| 197 | 211 | ||
| 198 | echo 1>&2 "CONFIGURE/MAKE IS NOT THE BEST WAY TO BUILD THE MPS | 212 | echo 1>&2 "CONFIGURE/MAKE IS NOT THE BEST WAY TO BUILD THE MPS |