aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-02-25 11:19:34 +0100
committerMattias Andrée <maandree@kth.se>2024-02-25 11:19:34 +0100
commit1c222c0991ab816f0c8dca32407801ce2525e885 (patch)
treef865f8feef05ad9a85875c09a875ed52696d2e1e /Makefile
parentPrepare for configurability (diff)
downloadcoreupdown-1.0.tar.gz
coreupdown-1.0.tar.bz2
coreupdown-1.0.tar.xz
Add coreupdownd: and configurations and daemonisation1.0
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 63eedf7..89ddfb5 100644
--- a/Makefile
+++ b/Makefile
@@ -4,14 +4,14 @@ CONFIGFILE = config.mk
include $(CONFIGFILE)
CPPFLAGS_CONFS =\
- -D'COREUP_THRESHOLD_CPU=$(COREUP_THRESHOLD_CPU)'\
- -D'COREUP_THRESHOLD_TIME=$(COREUP_THRESHOLD_TIME)'\
- -D'COREUP_COOLDOWN=$(COREUP_COOLDOWN)'\
- -D'COREDOWN_THRESHOLD_CPU=$(COREDOWN_THRESHOLD_CPU)'\
- -D'COREDOWN_THRESHOLD_TIME=$(COREDOWN_THRESHOLD_TIME)'\
- -D'COREDOWN_COOLDOWN=$(COREDOWN_COOLDOWN)'\
- -D'DAEMON_INTERVAL_SEC=$(DAEMON_INTERVAL_SEC)'\
- -D'DAEMON_INTERVAL_NSEC=$(DAEMON_INTERVAL_NSEC)'\
+ -D'COREUP_THRESHOLD_CPU=$(COREUP_THRESHOLD_CPU)U'\
+ -D'COREUP_THRESHOLD_TIME=$(COREUP_THRESHOLD_TIME)U'\
+ -D'COREUP_COOLDOWN=$(COREUP_COOLDOWN)U'\
+ -D'COREDOWN_THRESHOLD_CPU=$(COREDOWN_THRESHOLD_CPU)U'\
+ -D'COREDOWN_THRESHOLD_TIME=$(COREDOWN_THRESHOLD_TIME)U'\
+ -D'COREDOWN_COOLDOWN=$(COREDOWN_COOLDOWN)U'\
+ -D'DAEMON_INTERVAL_SEC=$(DAEMON_INTERVAL_SEC)U'\
+ -D'DAEMON_INTERVAL_NSEC=$(DAEMON_INTERVAL_NSEC)UL'\
-D'DAEMON_PATH="$(PREFIX)/bin/coreupdownd"'
OBJ =\
@@ -31,6 +31,7 @@ coreupdown: $(OBJ)
install: coreupdown
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man5"
test -f "$(DESTDIR)$(PREFIX)/bin/coreup" || test ! -e "$(DESTDIR)$(PREFIX)/bin/coreup"
test -f "$(DESTDIR)$(PREFIX)/bin/coredown" || test ! -e "$(DESTDIR)$(PREFIX)/bin/coredown"
test -f "$(DESTDIR)$(PREFIX)/bin/coreupdownd" || test ! -e "$(DESTDIR)$(PREFIX)/bin/coreupdownd"
@@ -38,6 +39,7 @@ install: coreupdown
ln -sf -- coreup "$(DESTDIR)$(PREFIX)/bin/coredown"
ln -sf -- coreup "$(DESTDIR)$(PREFIX)/bin/coreupdownd"
cp -- coreup.1 coredown.1 coreupdownd.1 "$(DESTDIR)$(MANPREFIX)/man1"
+ cp -- coreupdownd.conf.5 "$(DESTDIR)$(MANPREFIX)/man5"
postinstall:
chown '0:0' "$(DESTDIR)$(PREFIX)/bin/coreup"
@@ -50,6 +52,7 @@ uninstall:
-rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/coreup.1"
-rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/coredown.1"
-rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/coreupdownd.1"
+ -rm -f -- "$(DESTDIR)$(MANPREFIX)/man5/coreupdownd.conf.5"
clean:
-rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch *.gcov *.gcno *.gcda