install:
- mkdir -p "$(DESTDIR)/usr/share/man/man8"
- cp dinit.8 dinitctl.8 "$(DESTDIR)/usr/share/man/man8"
+ mkdir -p "$(DESTDIR)$(MANDIR)/man8"
+ install dinit.8 dinitctl.8 "$(DESTDIR)$(MANDIR)/man8"
+# Installation path options.
+
+SBINDIR=/sbin
+MANDIR=/usr/share/man
+
+
+# General build options. Uncomment the options appropriate for your system.
+
# Linux (GCC). Note with GCC 5.x/6.x you must use the old ABI, with GCC 7.x you must use
# the new ABI. See BUILD file for more information.
CXX=g++
BUILD_SHUTDOWN=yes
SANITIZEOPTS=-fsanitize=address,undefined
-# OpenBSD, tested with GCC 4.9.3 and gmake:
+# OpenBSD, tested with GCC 4.9.3 / Clang++ 4/5 and gmake:
#CXX=clang++
#CXXOPTS=-std=gnu++11 -Os -Wall -fno-rtti
#EXTRA_LIBS=
$(MAKE) -C tests check
install: all
- install -d $(DESTDIR)/sbin
- install -s dinit dinitctl $(SHUTDOWN) $(DESTDIR)/sbin
+ install -d $(DESTDIR)$(SBINDIR)
+ install -s dinit dinitctl $(SHUTDOWN) $(DESTDIR)$(SBINDIR)
ifeq ($(BUILD_SHUTDOWN),yes)
- install halt reboot $(DESTDIR)/sbin
+ install halt reboot $(DESTDIR)$(SBINDIR)
endif
clean: