Skip to content

Commit

Permalink
Makefile tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Sep 29, 2024
1 parent 7e4ae0d commit 848dc8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ $(LIB)/libredisx.so: $(LIB)/libredisx.so.$(SO_VERSION)
$(LIB)/libredisx.so.$(SO_VERSION): $(SOURCES)

# Static library
$(LIB)/libredisx.a: $(OBJECTS) | $(LIB) Makefile
$(LIB)/libredisx.a: $(OBJECTS)

README-redisx.md: README.md
LINE=`sed -n '/\# /{=;q;}' $<` && tail -n +$$((LINE+2)) $< > $@
Expand Down
4 changes: 2 additions & 2 deletions build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $(LIB)/lib%.so:
ln -sr $< $@

# Static library: *.a
$(LIB)/%.a:
$(LIB)/%.a: | $(LIB) Makefile
ar -rc $@ $^
ranlib $@

Expand Down Expand Up @@ -61,7 +61,7 @@ dox: README.md Doxyfile | apidoc $(SRC) $(INC)

# Automatic dependence on included header files.
.PRECIOUS: dep/%.d
dep/%.d: %.c dep
dep/%.d: $(SRC)/%.c | dep
@echo " > $@" \
&& $(CC) $(CPPFLAGS) -MM -MG $< > $@.$$$$ \
&& sed 's|\w*\.o[ :]*| $(OBJ)/&|g' < $@.$$$$ > $@; \
Expand Down

0 comments on commit 848dc8d

Please sign in to comment.