ask ChatGPT.
Tupa copy paste
Code:
To hide the path of the target directory in the output, you can modify the Makefile to include the "-s" or "--silent" flag when running the make command. This flag will suppress the output of the commands being executed during the build process, including the directory names.
Here's an example of how you can modify your Makefile to include the "-s" flag:
.PHONY: all build
all:
build:
src/file.c :
build/file.o : src/file.c
@echo "Building $@"
@$(CC) -c -o $@ $< $(CFLAGS)
Then, when you run the "make" command, you can add the "-s" flag like this:
make -s
This will run the build process without showing the directory names in the output.
uzjautā pats chatGPT un pielabo ja nav kas skaidrs vai gribas ko vel klat