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)