Skip to content

Commit

Permalink
Update dependencies before building
Browse files Browse the repository at this point in the history
  • Loading branch information
breard-r committed May 8, 2019
1 parent d1d393f commit 03b24a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ MAN_SRC = acmed.8 \
tacd.8
MAN_FILES = $(foreach name,$(MAN_SRC),$(MAN_DST_DIR)/$(name).gz)

all: $(EXE_FILES) man
all: update $(EXE_FILES) man

man: $(MAN_DST_DIR) $(MAN_FILES)

Expand All @@ -31,6 +31,9 @@ $(MAN_DST_DIR):
$(MAN_DST_DIR)/%.gz: $(MAN_SRC_DIR)/%
gzip <"$<" >"$@"

update:
cargo update

install:
install -D --mode=0755 $(TARGET_DIR)/acmed $(DESTDIR)$(BINDIR)/acmed
install -D --mode=0755 $(TARGET_DIR)/tacd $(DESTDIR)$(BINDIR)/tacd
Expand All @@ -44,4 +47,4 @@ install:
clean:
cargo clean

.PHONY: $(EXE_NAMES) all clean install man
.PHONY: $(EXE_NAMES) all clean install man update

0 comments on commit 03b24a0

Please sign in to comment.