1
0
Fork 0
forked from poz/modfetch

stop cleaning object files on build

This commit is contained in:
jacekpoz 2024-02-09 13:33:06 +01:00
parent 85eb489d7c
commit bfcf6fa157
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C

View file

@ -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)