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
INCDIR = include
BUILDDIR = build
BUILDDIR = BUILD
INSTALL_FILE = INSTALL.BAT
README_DOS = READ-DOS.TXT
@ -46,32 +46,40 @@ $(BUILDDIR):
# Individual exe rules (unchanged)
$(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
$(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
$(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
$(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
$(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
$(BUILDDIR)\cnhelp.exe: $(SRCDIR)\cnhelp.c
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
$(CC) $(CFLAGS) -e$(BUILDDIR)\cnhelp.exe $(SRCDIR)\cnhelp.c
$(BUILDDIR)\$(INSTALL_FILE): $(INSTALL_FILE)
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
copy $(INSTALL_FILE) $(BUILDDIR)\$(INSTALL_FILE)
$(BUILDDIR)\$(README_DOS): $(README_DOS)
copy $(README_DOS) $(BUILDDIR)\$(README_DOS)
if not exist $(BUILDDIR) mkdir $(BUILDDIR)
copy $(README_DOS) $(BUILDDIR)\$(README_DOS)
clean:
if exist $(BUILDDIR)\*.exe del $(BUILDDIR)\*.exe
if exist $(BUILDDIR)\*.obj del $(BUILDDIR)\*.obj
if exist $(BUILDDIR)\$(INSTALL_FILE) del $(BUILDDIR)\$(INSTALL_FILE)
if exist $(BUILDDIR)\$(README_DOS) del $(BUILDDIR)\$(README_DOS)
if exist $(BUILDDIR) rmdir $(BUILDDIR)
if exist $(BUILDDIR)\*.exe del $(BUILDDIR)\*.exe
if exist $(BUILDDIR)\*.obj del $(BUILDDIR)\*.obj
if exist $(BUILDDIR)\$(INSTALL_FILE) del $(BUILDDIR)\$(INSTALL_FILE)
if exist $(BUILDDIR)\$(README_DOS) del $(BUILDDIR)\$(README_DOS)
if exist $(BUILDDIR) rmdir $(BUILDDIR)