From bfcf6fa1571e3891c3e7fa5705a7e2c02b88b6a5 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Fri, 9 Feb 2024 13:33:06 +0100 Subject: [PATCH] stop cleaning object files on build --- Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 40e38a8..9adb610 100644 --- a/Makefile +++ b/Makefile @@ -15,9 +15,9 @@ TEMPMOD = $(wildcard modules/*.c) MOD = $(TEMPMOD:modules/%=%) PROGRAM = modfetch -.PHONY: all clean distclean +.PHONY: all clean -all: dirs $(PROGRAM) distclean +all: dirs modules $(PROGRAM) modules: dirs $(MOD:.c=.so) @@ -36,8 +36,5 @@ $(BIN)/%.o: %.c %.so: modules/%.c $(CC) -o $(BIN)/$@ $^ -shared -fPIC $(CFLAGS) -clean: distclean +clean: rm -rf $(BIN) - -distclean: - rm -rf $(OBJ)