Skip to content

Commit

Permalink
feat(#55): set install as default target
Browse files Browse the repository at this point in the history
  • Loading branch information
jannis-baum committed Jul 8, 2024
1 parent 7749a34 commit 97ac06c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ $(EXE_PATH_LINUX): viv
# ------------------------------------------------------------------------------
# MARK: configured installation ------------------------------------------------

.DEFAULT_GOAL := install
.PHONY: install

# include .env.mk from ./configure
_MK_DIR=$(dir $(abspath $(firstword $(MAKEFILE_LIST))))
# - prefix is used to ignore errors if the file does not exist
Expand All @@ -88,7 +91,6 @@ BUILD_SERVER=$(BUILD_DIR)/$(SYSTEM)/$(SERVER_NAME)
INSTALL_EXE=$(INSTALL_DIR)/$(EXE_NAME)
BUILD_EXE=$(BUILD_DIR)/$(SYSTEM)/$(EXE_NAME)

.PHONY: install
install: $(INSTALL_SERVER) $(INSTALL_EXE)

$(INSTALL_SERVER): $(BUILD_SERVER)
Expand All @@ -99,6 +101,11 @@ $(INSTALL_EXE): $(BUILD_EXE)
rm -rf $(INSTALL_EXE)
cp $(BUILD_EXE) $(INSTALL_EXE)

else

install:
@ echo "Please run ./configure <install_dir> to define the install target"

endif
# <<< endif

Expand Down

0 comments on commit 97ac06c

Please sign in to comment.