Skip to content

Commit

Permalink
make: install depends on $(TARGET)
Browse files Browse the repository at this point in the history
Before install is run, make sure $(TARGET) is built.

Signed-off-by: Marco Vedovati <[email protected]>
  • Loading branch information
marcov committed Jul 22, 2019
1 parent b634b06 commit a1c9d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ $(TARGET): $(GENERATED_FILES) $(SOURCES) $(VERSION_FILE)
go build $(BUILDFLAGS) -tags "$(BUILDTAGS)" -o $@ \
-ldflags "-X main.version=$(VERSION_COMMIT) -X main.seccompSupport=$(SECCOMP) $(LDFLAGS)"

install:
install: $(TARGET)
install -D $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
ifeq ($(INIT),no)
@echo "Installing systemd unit files..."
Expand Down

0 comments on commit a1c9d50

Please sign in to comment.