From f4a80e3cd5ef7080719312c66a2f67f5baf68e30 Mon Sep 17 00:00:00 2001 From: nishi Date: Wed, 19 Jun 2024 01:35:30 +0000 Subject: [PATCH] add makefiles git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@360 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- Document/README.FMT | 5 ++--- Makefiles/common.mk | 42 +--------------------------------------- Makefiles/installer.mk | 44 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 44 deletions(-) create mode 100644 Makefiles/installer.mk diff --git a/Document/README.FMT b/Document/README.FMT index f9fc4e5..fa524ca 100644 --- a/Document/README.FMT +++ b/Document/README.FMT @@ -89,11 +89,10 @@ Works with TCP/IP socket. How to install \hline -This document should be only included in DOS installer, so we'll only explain -how to install on DOS. +On DOS... \list -\list Insert the floppy/CD-ROM. +\list Insert the floppy \list Change the drive to your installation media. \list Run install.exe for English, instajp.exe for Japanese installer. \list Specify the path to be installed on. diff --git a/Makefiles/common.mk b/Makefiles/common.mk index ca54638..0bfe492 100644 --- a/Makefiles/common.mk +++ b/Makefiles/common.mk @@ -63,47 +63,6 @@ clean: $(MAKE) -C ./Document clean $(COMPILE_FLAGS) $(MAKE) -C ./Tool clean $(COMPILE_FLAGS) -dos-installer: - if [ ! "$(FORMAT)" = "NO" ]; then $(MAKE) PLATFORM=dos clean ; fi - if [ ! "$(FORMAT)" = "NO" ]; then $(MAKE) PLATFORM=dos no-doc ; fi - if [ ! "$(FORMAT)" = "NO" ]; then rm -f install.img ; fi - if [ ! "$(FORMAT)" = "NO" ]; then mformat -C -f $(FLOPPY_SIZE) -v DWINST -i install.img :: ; fi - if [ ! "$(FORMAT)" = "NO" ]; then mcopy -i install.img Client/*.exe ::dw.exe ; fi - if [ ! "$(FORMAT)" = "NO" ]; then mcopy -i install.img Server/*.exe ::dwserv.exe ; fi - if [ ! "$(FORMAT)" = "NO" ]; then mcopy -i install.img RemoteClient/*.exe ::dwrcli.exe ; fi - $(MAKE) PLATFORM=dos TARGET=clean ./Installer - $(MAKE) PLATFORM=dos ./Installer - mcopy -oi install.img Installer/*.exe ::install.exe - $(MAKE) PLATFORM=dos TARGET=clean ./Installer - $(MAKE) PLATFORM=dos INDEP=jp INDEP_TO=cp932 ./Installer - $(MAKE) ./Tool - $(MAKE) -C ./Document README.DOC - mcopy -toi install.img Document/README.DOC :: - mcopy -oi install.img Installer/*.exe ::instajp.exe - if [ ! -e lha.exe ]; then wget http://f.nishi.boats/f/g/lha.exe ; fi - if [ ! "$(FORMAT)" = "NO" ]; then mcopy -i install.img lha.exe ::lha.exe ; fi - if [ ! "$(FORMAT)" = "NO" ]; then mkdir -p install-workdir ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "[cpu]" > install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "cycles=30000" >> install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "[autoexec]" >> install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "imgmount -t floppy a: ./install.img" >> install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "a:" >> install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "mount c: ./install-workdir" >> install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "lha a C:\EXTRACT.LZH dw.exe dwserv.exe dwrcli.exe readme.doc" >> install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "del dw.exe" >> install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "del dwserv.exe" >> install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "del dwrcli.exe" >> install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "c:" >> install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "a:\lha s extract.lzh" >> install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "a:" >> install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "copy C:\EXTRACT.EXE" >> install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "del lha.exe" >> install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then echo "exit" >> install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then dosbox -conf install-dosbox.conf ; fi - if [ ! "$(FORMAT)" = "NO" ]; then rm -rf install-workdir ; fi - if [ ! "$(FORMAT)" = "NO" ]; then rm -f install-dosbox.conf ; fi - $(MAKE) clean - get-version: @echo $(VERSION) @@ -111,3 +70,4 @@ include Makefiles/archive.mk include Makefiles/dosbox.mk include Makefiles/package.mk include Makefiles/test.mk +include Makefiles/installer.mk diff --git a/Makefiles/installer.mk b/Makefiles/installer.mk new file mode 100644 index 0000000..5b80a7c --- /dev/null +++ b/Makefiles/installer.mk @@ -0,0 +1,44 @@ +# $Id$ + +.PHONY: dos-installer + +dos-installer: + if [ ! "$(FORMAT)" = "NO" ]; then $(MAKE) PLATFORM=dos clean ; fi + if [ ! "$(FORMAT)" = "NO" ]; then $(MAKE) PLATFORM=dos no-doc ; fi + if [ ! "$(FORMAT)" = "NO" ]; then rm -f install.img ; fi + if [ ! "$(FORMAT)" = "NO" ]; then mformat -C -f $(FLOPPY_SIZE) -v DWINST -i install.img :: ; fi + if [ ! "$(FORMAT)" = "NO" ]; then mcopy -i install.img Client/*.exe ::dw.exe ; fi + if [ ! "$(FORMAT)" = "NO" ]; then mcopy -i install.img Server/*.exe ::dwserv.exe ; fi + if [ ! "$(FORMAT)" = "NO" ]; then mcopy -i install.img RemoteClient/*.exe ::dwrcli.exe ; fi + $(MAKE) PLATFORM=dos TARGET=clean ./Installer + $(MAKE) PLATFORM=dos ./Installer + mcopy -oi install.img Installer/*.exe ::install.exe + $(MAKE) PLATFORM=dos TARGET=clean ./Installer + $(MAKE) PLATFORM=dos INDEP=jp INDEP_TO=cp932 ./Installer + $(MAKE) ./Tool + $(MAKE) -C ./Document README.DOC + mcopy -toi install.img Document/README.DOC :: + mcopy -oi install.img Installer/*.exe ::instajp.exe + if [ ! -e lha.exe ]; then wget http://f.nishi.boats/f/g/lha.exe ; fi + if [ ! "$(FORMAT)" = "NO" ]; then mcopy -i install.img lha.exe ::lha.exe ; fi + if [ ! "$(FORMAT)" = "NO" ]; then mkdir -p install-workdir ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "[cpu]" > install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "cycles=30000" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "[autoexec]" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "imgmount -t floppy a: ./install.img" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "a:" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "mount c: ./install-workdir" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "lha a C:\EXTRACT.LZH dw.exe dwserv.exe dwrcli.exe readme.doc" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "del dw.exe" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "del dwserv.exe" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "del dwrcli.exe" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "c:" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "a:\lha s extract.lzh" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "a:" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "copy C:\EXTRACT.EXE" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "del lha.exe" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then echo "exit" >> install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then dosbox -conf install-dosbox.conf ; fi + if [ ! "$(FORMAT)" = "NO" ]; then rm -rf install-workdir ; fi + if [ ! "$(FORMAT)" = "NO" ]; then rm -f install-dosbox.conf ; fi + $(MAKE) clean -- 2.43.0