diff options
| author | Andrew Innes | 2000-07-05 17:32:43 +0000 |
|---|---|---|
| committer | Andrew Innes | 2000-07-05 17:32:43 +0000 |
| commit | de32572e7355094e66b1a1e19bc2e7fceb2ee56a (patch) | |
| tree | 40500ae75d25a60d64c6d8d7f5d728efa07defef /nt | |
| parent | e2b1c424356b717e6f4e9c6064065ff394c07131 (diff) | |
| download | emacs-de32572e7355094e66b1a1e19bc2e7fceb2ee56a.tar.gz emacs-de32572e7355094e66b1a1e19bc2e7fceb2ee56a.zip | |
Add support for `bootstrap' and related targets.
Diffstat (limited to 'nt')
| -rw-r--r-- | nt/makefile.nt | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/nt/makefile.nt b/nt/makefile.nt index 35fc32fee64..a89e6a446ac 100644 --- a/nt/makefile.nt +++ b/nt/makefile.nt | |||
| @@ -82,7 +82,7 @@ $(BLD)\runemacs.exe: $(BLD)\runemacs.obj $(TRES) | |||
| 82 | # | 82 | # |
| 83 | # Build emacs | 83 | # Build emacs |
| 84 | # | 84 | # |
| 85 | BUILD_CMD = $(MAKE) -f makefile.nt all | 85 | BUILD_CMD = $(MAKE) $(MFLAGS) -f makefile.nt all |
| 86 | all: $(BLD) $(ALL) | 86 | all: $(BLD) $(ALL) |
| 87 | cd ..\lib-src | 87 | cd ..\lib-src |
| 88 | $(BUILD_CMD) | 88 | $(BUILD_CMD) |
| @@ -94,34 +94,33 @@ all: $(BLD) $(ALL) | |||
| 94 | if exist makefile.nt $(BUILD_CMD) | 94 | if exist makefile.nt $(BUILD_CMD) |
| 95 | cd ..\nt | 95 | cd ..\nt |
| 96 | 96 | ||
| 97 | BOOTSTRAP_CMD = $(MAKE) $(MFLAGS) -f makefile.nt bootstrap | ||
| 98 | bootstrap: $(BLD) $(ALL) | ||
| 99 | cd ..\src | ||
| 100 | $(BOOTSTRAP_CMD) | ||
| 101 | $(BOOTCLEAN_CMD) | ||
| 102 | cd ..\lisp | ||
| 103 | $(BOOTSTRAP_CMD) | ||
| 104 | cd ..\nt | ||
| 105 | |||
| 106 | BOOTCLEAN_CMD = $(MAKE) $(MFLAGS) -f makefile.nt bootstrap-clean | ||
| 107 | bootstrap-clean: | ||
| 108 | cd ..\src | ||
| 109 | $(BOOTCLEAN_CMD) | ||
| 110 | cd ..\lisp | ||
| 111 | $(BOOTCLEAN_CMD) | ||
| 112 | |||
| 97 | $(INSTALL_DIR): | 113 | $(INSTALL_DIR): |
| 98 | - mkdir $(INSTALL_DIR) | 114 | - mkdir $(INSTALL_DIR) |
| 99 | 115 | ||
| 100 | $(INSTALL_DIR)\bin: | 116 | $(INSTALL_DIR)\bin: |
| 101 | - mkdir $(INSTALL_DIR)\bin | 117 | - mkdir $(INSTALL_DIR)\bin |
| 102 | 118 | ||
| 103 | $(INSTALL_DIR)\bin\emacs.bat: emacs.bat.in | ||
| 104 | echo @echo off > $@ | ||
| 105 | echo REM !!! Warning: This file automatically generated !!! >> emacs.bat | ||
| 106 | echo set emacs_dir=$(INSTALL_DIR)>> $@ | ||
| 107 | type emacs.bat.in >> $@ | ||
| 108 | |||
| 109 | $(INSTALL_DIR)\bin\debug.bat: debug.bat.in | ||
| 110 | echo @echo off > $@ | ||
| 111 | echo REM !!! Warning: This file automatically generated !!! >> debug.bat | ||
| 112 | echo set emacs_dir=$(INSTALL_DIR)>> $@ | ||
| 113 | type debug.bat.in >> $@ | ||
| 114 | |||
| 115 | batch_files: $(INSTALL_DIR) \ | ||
| 116 | $(INSTALL_DIR)\bin \ | ||
| 117 | $(INSTALL_DIR)\bin\emacs.bat \ | ||
| 118 | $(INSTALL_DIR)\bin\debug.bat | ||
| 119 | |||
| 120 | # | 119 | # |
| 121 | # Build and install emacs in INSTALL_DIR | 120 | # Build and install emacs in INSTALL_DIR |
| 122 | # | 121 | # |
| 123 | INSTALL_CMD = $(MAKE) -f makefile.nt install | 122 | INSTALL_CMD = $(MAKE) -f makefile.nt install |
| 124 | install: all $(INSTALL_DIR) batch_files | 123 | install: all $(INSTALL_DIR) |
| 125 | cd ..\lib-src | 124 | cd ..\lib-src |
| 126 | $(INSTALL_CMD) | 125 | $(INSTALL_CMD) |
| 127 | cd ..\src | 126 | cd ..\src |
| @@ -150,7 +149,7 @@ install: all $(INSTALL_DIR) batch_files | |||
| 150 | # This installs executables from ..\bin into the installation directory | 149 | # This installs executables from ..\bin into the installation directory |
| 151 | # without building anything. | 150 | # without building anything. |
| 152 | # | 151 | # |
| 153 | fast_install: batch_files | 152 | fast_install: |
| 154 | - mkdir $(INSTALL_DIR)\data | 153 | - mkdir $(INSTALL_DIR)\data |
| 155 | $(CP) ..\lib-src\DOC $(INSTALL_DIR)\etc | 154 | $(CP) ..\lib-src\DOC $(INSTALL_DIR)\etc |
| 156 | - mkdir $(INSTALL_DIR)\bin | 155 | - mkdir $(INSTALL_DIR)\bin |
| @@ -189,17 +188,15 @@ real_install: | |||
| 189 | # Maintenance | 188 | # Maintenance |
| 190 | # | 189 | # |
| 191 | CLEAN_CMD = $(MAKE) -f makefile.nt clean | 190 | CLEAN_CMD = $(MAKE) -f makefile.nt clean |
| 192 | clean:; - $(DEL) *~ *.pdb | 191 | clean: |
| 192 | - $(DEL) *~ *.pdb | ||
| 193 | - $(DEL) *.orig | 193 | - $(DEL) *.orig |
| 194 | - $(DEL) *.rej | 194 | - $(DEL) *.rej |
| 195 | - $(DEL) *.crlf | 195 | - $(DEL) *.crlf |
| 196 | - $(DEL_TREE) deleted | 196 | - $(DEL_TREE) deleted |
| 197 | - $(DEL_TREE) obj | 197 | - $(DEL_TREE) obj |
| 198 | - $(DEL_TREE) obj-spd | 198 | - $(DEL_TREE) obj-spd |
| 199 | - $(DEL_TREE) ..\bin | ||
| 200 | - $(DEL) ..\etc\DOC ..\etc\DOC-X | 199 | - $(DEL) ..\etc\DOC ..\etc\DOC-X |
| 201 | - $(DEL) emacs.bat | ||
| 202 | - $(DEL) debug.bat | ||
| 203 | cd ..\lib-src | 200 | cd ..\lib-src |
| 204 | $(CLEAN_CMD) | 201 | $(CLEAN_CMD) |
| 205 | cd ..\src | 202 | cd ..\src |
| @@ -209,3 +206,6 @@ clean:; - $(DEL) *~ *.pdb | |||
| 209 | cd ..\leim | 206 | cd ..\leim |
| 210 | if exist makefile.nt $(CLEAN_CMD) | 207 | if exist makefile.nt $(CLEAN_CMD) |
| 211 | cd ..\nt | 208 | cd ..\nt |
| 209 | |||
| 210 | realclean: clean | ||
| 211 | - $(DEL_TREE) ..\bin | ||