Skip to content
Snippets Groups Projects
Commit b5e8ed7b authored by Leon Bohnwagner's avatar Leon Bohnwagner :crab:
Browse files

build: update makefile

parent ac4ec87f
No related branches found
No related tags found
No related merge requests found
...@@ -8,9 +8,9 @@ CLIENTS = dummy cpu_temp ...@@ -8,9 +8,9 @@ CLIENTS = dummy cpu_temp
SYSTEM_NAME = sibyl SYSTEM_NAME = sibyl
all: build install all:
$(MAKE) -C kernel
build:
mkdir -p $(CMAKE_BUILD_DIR) mkdir -p $(CMAKE_BUILD_DIR)
cd $(CMAKE_BUILD_DIR) && cmake .. cd $(CMAKE_BUILD_DIR) && cmake ..
cd $(CMAKE_BUILD_DIR) && make cd $(CMAKE_BUILD_DIR) && make
...@@ -25,13 +25,15 @@ install: ...@@ -25,13 +25,15 @@ install:
$(foreach client, $(CLIENTS), install -m 644 systemd/clients/$(SYSTEM_NAME)-$(subst _,-,$(client)).service $(SYSTEMD_DIR)/$(SYSTEM_NAME)-$(subst _,-,$(client)).service;) $(foreach client, $(CLIENTS), install -m 644 systemd/clients/$(SYSTEM_NAME)-$(subst _,-,$(client)).service $(SYSTEMD_DIR)/$(SYSTEM_NAME)-$(subst _,-,$(client)).service;)
uninstall: uninstall:
rm -f $(BINARY_DIR)/$(SYSTEM_NAME)-$(DAEMON) rm $(BINARY_DIR)/$(SYSTEM_NAME)-$(DAEMON)
$(foreach client, $(CLIENTS), rm -f $(BINARY_DIR)/$(SYSTEM_NAME)-$(subst _,-,$(client));) $(foreach client, $(CLIENTS), rm $(BINARY_DIR)/$(SYSTEM_NAME)-$(subst _,-,$(client));)
rm -f $(SYSTEMD_DIR)/$(SYSTEM_NAME)-$(DAEMON).service rm $(SYSTEMD_DIR)/$(SYSTEM_NAME)-$(DAEMON).service
$(foreach client, $(CLIENTS), rm -f $(SYSTEMD_DIR)/$(SYSTEM_NAME)-$(subst _,-,$(client)).service;) $(foreach client, $(CLIENTS), rm $(SYSTEMD_DIR)/$(SYSTEM_NAME)-$(subst _,-,$(client)).service;)
clean: clean:
$(MAKE) -C kernel clean
rm -rf $(CMAKE_BUILD_DIR) rm -rf $(CMAKE_BUILD_DIR)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment