Selectively build groups of tools (inputattach,
joystick tools and/or force-feedback tools).
Signed-off-by: Koen Martens <gmc@sonologic.nl>
diff -Naur a/utils/Makefile b/utils/Makefile
--- a/utils/Makefile 2016-04-19 23:28:36.000000000 +0200
+++ b/utils/Makefile 2017-06-19 08:54:20.152184000 +0200
-PROGRAMS = inputattach jstest jscal fftest ffmvforce ffset \
- ffcfstress jscal-restore jscal-store evdev-joystick
+ifdef ENABLE_INPUTATTACH
+PROGRAMS += jscal-restore
+PROGRAMS += evdev-joystick
+ifdef ENABLE_FORCEFEEDBACK
80-stelladaptor-joystick.rules: 80-stelladaptor-joystick.rules.in
sed "s^@@PREFIX@@^$(PREFIX)^g" < $^ > $@
+INSTALL_DEP += 80-stelladaptor-joystick.rules
install: compile 80-stelladaptor-joystick.rules
install -d $(DESTDIR)$(PREFIX)/bin
install $(PROGRAMS) $(DESTDIR)$(PREFIX)/bin
install -d $(DESTDIR)$(PREFIX)/share/joystick
install extract filter ident $(DESTDIR)$(PREFIX)/share/joystick
install -d $(DESTDIR)/lib/udev/rules.d
install js-set-enum-leds $(DESTDIR)/lib/udev
install -m 644 80-stelladaptor-joystick.rules $(DESTDIR)/lib/udev/rules.d
.PHONY: compile clean distclean install