summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk@armlinux.org.uk>2021-04-16 15:08:37 +0100
committerRussell King <rmk@armlinux.org.uk>2021-04-16 15:08:37 +0100
commit2a19a0659cf3ce87ff51c20afe5bc16482e4bdf8 (patch)
treeaba613b80176a1ca3bb53f9f8bc9c08f60b18115
parent9d7b0311d5948fca09b19dbe27e5f506e2e303e0 (diff)
build: split install target
Split the install target into two separate rules so we can install just the binary for updates. Signed-off-by: Russell King <rmk@armlinux.org.uk>
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b062b10..2c4fe7e 100644
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,12 @@ systemdsystemunitdir :=/etc/systemd/system
all: event-httpd event-httpd.service
-install:
+install: install-bin install-systemd
+
+install-bin:
$(INSTALL) -s -m 755 event-httpd $(sbindir)
+
+install-systemd:
$(INSTALL) -m 644 event-httpd.service $(systemdsystemunitdir)
event-httpd: event-httpd.o resource.o