Do whatever it takes to make sure the build directory is there
All checks were successful
Build / build (push) Successful in 14s

This commit is contained in:
Greg Gauthier 2026-02-04 19:28:58 +00:00
parent 144f7bb644
commit f6116fbc93

View File

@ -18,7 +18,7 @@ CFLAGS = -A -w -ml -I.\include
SRCDIR = src SRCDIR = src
INCDIR = include INCDIR = include
BUILDDIR = build BUILDDIR = BUILD
INSTALL_FILE = INSTALL.BAT INSTALL_FILE = INSTALL.BAT
README_DOS = READ-DOS.TXT README_DOS = READ-DOS.TXT
@ -46,32 +46,40 @@ $(BUILDDIR):
# Individual exe rules (unchanged) # Individual exe rules (unchanged)
$(BUILDDIR)\cnadd.exe: $(SRCDIR)\cnadd.c $(INCDIR)\platform.h $(INCDIR)\config.h $(BUILDDIR)\cnadd.exe: $(SRCDIR)\cnadd.c $(INCDIR)\platform.h $(INCDIR)\config.h
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
$(CC) $(CFLAGS) -e$(BUILDDIR)\cnadd.exe $(SRCDIR)\cnadd.c $(CC) $(CFLAGS) -e$(BUILDDIR)\cnadd.exe $(SRCDIR)\cnadd.c
$(BUILDDIR)\cndump.exe: $(SRCDIR)\cndump.c $(INCDIR)\platform.h $(INCDIR)\config.h $(BUILDDIR)\cndump.exe: $(SRCDIR)\cndump.c $(INCDIR)\platform.h $(INCDIR)\config.h
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
$(CC) $(CFLAGS) -e$(BUILDDIR)\cndump.exe $(SRCDIR)\cndump.c $(CC) $(CFLAGS) -e$(BUILDDIR)\cndump.exe $(SRCDIR)\cndump.c
$(BUILDDIR)\cncount.exe: $(SRCDIR)\cncount.c $(INCDIR)\platform.h $(INCDIR)\config.h $(BUILDDIR)\cncount.exe: $(SRCDIR)\cncount.c $(INCDIR)\platform.h $(INCDIR)\config.h
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
$(CC) $(CFLAGS) -e$(BUILDDIR)\cncount.exe $(SRCDIR)\cncount.c $(CC) $(CFLAGS) -e$(BUILDDIR)\cncount.exe $(SRCDIR)\cncount.c
$(BUILDDIR)\cndel.exe: $(SRCDIR)\cndel.c $(INCDIR)\platform.h $(INCDIR)\config.h $(BUILDDIR)\cndel.exe: $(SRCDIR)\cndel.c $(INCDIR)\platform.h $(INCDIR)\config.h
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
$(CC) $(CFLAGS) -e$(BUILDDIR)\cndel.exe $(SRCDIR)\cndel.c $(CC) $(CFLAGS) -e$(BUILDDIR)\cndel.exe $(SRCDIR)\cndel.c
$(BUILDDIR)\cnfind.exe: $(SRCDIR)\cnfind.c $(INCDIR)\platform.h $(INCDIR)\config.h $(BUILDDIR)\cnfind.exe: $(SRCDIR)\cnfind.c $(INCDIR)\platform.h $(INCDIR)\config.h
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
$(CC) $(CFLAGS) -e$(BUILDDIR)\cnfind.exe $(SRCDIR)\cnfind.c $(CC) $(CFLAGS) -e$(BUILDDIR)\cnfind.exe $(SRCDIR)\cnfind.c
$(BUILDDIR)\cnhelp.exe: $(SRCDIR)\cnhelp.c $(BUILDDIR)\cnhelp.exe: $(SRCDIR)\cnhelp.c
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
$(CC) $(CFLAGS) -e$(BUILDDIR)\cnhelp.exe $(SRCDIR)\cnhelp.c $(CC) $(CFLAGS) -e$(BUILDDIR)\cnhelp.exe $(SRCDIR)\cnhelp.c
$(BUILDDIR)\$(INSTALL_FILE): $(INSTALL_FILE) $(BUILDDIR)\$(INSTALL_FILE): $(INSTALL_FILE)
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
copy $(INSTALL_FILE) $(BUILDDIR)\$(INSTALL_FILE) copy $(INSTALL_FILE) $(BUILDDIR)\$(INSTALL_FILE)
$(BUILDDIR)\$(README_DOS): $(README_DOS) $(BUILDDIR)\$(README_DOS): $(README_DOS)
copy $(README_DOS) $(BUILDDIR)\$(README_DOS) if not exist $(BUILDDIR) mkdir $(BUILDDIR)
copy $(README_DOS) $(BUILDDIR)\$(README_DOS)
clean: clean:
if exist $(BUILDDIR)\*.exe del $(BUILDDIR)\*.exe if exist $(BUILDDIR)\*.exe del $(BUILDDIR)\*.exe
if exist $(BUILDDIR)\*.obj del $(BUILDDIR)\*.obj if exist $(BUILDDIR)\*.obj del $(BUILDDIR)\*.obj
if exist $(BUILDDIR)\$(INSTALL_FILE) del $(BUILDDIR)\$(INSTALL_FILE) if exist $(BUILDDIR)\$(INSTALL_FILE) del $(BUILDDIR)\$(INSTALL_FILE)
if exist $(BUILDDIR)\$(README_DOS) del $(BUILDDIR)\$(README_DOS) if exist $(BUILDDIR)\$(README_DOS) del $(BUILDDIR)\$(README_DOS)
if exist $(BUILDDIR) rmdir $(BUILDDIR) if exist $(BUILDDIR) rmdir $(BUILDDIR)