From bc9281a3bb7a85c826d3a49220bc13134478477c Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 27 May 2024 17:09:25 +0100 Subject: Properly create bin directory bin subdirectory is not properly created before running make -C tools. Co-authored-by: Pedro de Medeiros --- tools/apultra/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tools/apultra') 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) -- cgit v1.2.3