aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 3bbc253..7a0ed30 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -5,6 +5,8 @@ bindir = @bindir@
datarootdir = $(prefix)/share
mandir = @mandir@
datadir = $(datarootdir)/@PACKAGE_NAME@
+exec_perms = 0755
+install-suid-root: exec_perms = 4755
CC = @CC@
CFLAGS = @CFLAGS@
@@ -39,9 +41,13 @@ tags: $(wildcard *[ch])
.PHONY: install uninstall clean distclean
-install: wavemon wavemon.1 wavemonrc.5 $(DOCS)
+install: install-binaries install-docs
+
+install-suid-root install-binaries: all
$(INSTALL) -m 0755 -d $(DESTDIR)$(bindir)
- $(INSTALL) -m 0755 wavemon $(DESTDIR)$(bindir)
+ $(INSTALL) -m $(exec_perms) @PACKAGE_NAME@ $(DESTDIR)$(bindir)
+
+install-docs: @PACKAGE_NAME@.1 @PACKAGE_NAME@rc.5 $(DOCS)
$(INSTALL) -m 0755 -d $(DESTDIR)$(mandir)/man1
$(INSTALL) -m 0644 wavemon.1 $(DESTDIR)$(mandir)/man1
$(INSTALL) -m 0755 -d $(DESTDIR)$(mandir)/man5