diff --git a/cpp/Dockerfile b/cpp/Dockerfile index b1539c4..e99d9d1 100644 --- a/cpp/Dockerfile +++ b/cpp/Dockerfile @@ -11,7 +11,7 @@ WORKDIR /home/ViolaJones/cpp RUN dnf install -y make-1:4.3-7.el9 && dnf clean all COPY --from=builder /home/ViolaJones/cpp/bin ./bin -COPY Makefile . +COPY --from=builder /home/ViolaJones/cpp/Makefile . ENTRYPOINT ["make"] CMD ["start"] diff --git a/cpp/Makefile b/cpp/Makefile index 2c5c2a6..cef2b6f 100644 --- a/cpp/Makefile +++ b/cpp/Makefile @@ -36,7 +36,9 @@ $(OBJ_DIR)/%.$(OBJ_EXT): $(SRC_DIR)/%.cu | $(OBJ_DIR) check-nvcc-works @echo Compiling $< @$(CC) $(CFLAGS) -c $< -o $@ -$(EXEC): $(OBJ) | check-nvcc-works +# FIXME When using the docker image, Make check prequisites even when the target already exists +#$(EXEC): $(OBJ) | check-nvcc-works +$(EXEC): $(OBJ) @echo Linking objects files to $@ @$(CC) $(CFLAGS) $^ -o $@