aboutsummaryrefslogtreecommitdiff
path: root/tools/apultra
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2024-05-27 17:09:25 +0100
committerJuan J. Martinez <jjm@usebox.net>2024-05-27 17:09:25 +0100
commitbc9281a3bb7a85c826d3a49220bc13134478477c (patch)
tree4e10698fe533dd54db85bb38087ae9158b1a531d /tools/apultra
parent4b56dc74819f7fc85099ffa49e772ce821592708 (diff)
downloadubox-msx-lib-bc9281a3bb7a85c826d3a49220bc13134478477c.tar.gz
ubox-msx-lib-bc9281a3bb7a85c826d3a49220bc13134478477c.zip
Properly create bin directory
bin subdirectory is not properly created before running make -C tools. Co-authored-by: Pedro de Medeiros <pedro.medeiros@gmail.com>
Diffstat (limited to 'tools/apultra')
-rw-r--r--tools/apultra/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/apultra/Makefile b/tools/apultra/Makefile
index 1b246aa..f657152 100644
--- a/tools/apultra/Makefile
+++ b/tools/apultra/Makefile
@@ -19,7 +19,7 @@ OBJS += $(OBJDIR)/src/libdivsufsort/lib/divsufsort_utils.o
OBJS += $(OBJDIR)/src/libdivsufsort/lib/sssort.o
OBJS += $(OBJDIR)/src/libdivsufsort/lib/trsort.o
-all: $(APP)
+all: default
ifeq ($(OS),Windows_NT)
TARGET = apultra.exe
@@ -27,10 +27,12 @@ else
TARGET = apultra
endif
+default: $(APP)
+ cp $(APP) -t ../../bin
+ @rm -rf $(TARGET) $(OBJDIR)
+
$(APP): $(OBJS)
$(CC) $^ $(LDFLAGS) -o $(APP)
- cp $(TARGET) ../../bin
- @rm -rf $(TARGET) $(OBJDIR)
clean:
@rm -rf $(TARGET) $(OBJDIR)