retroarch-joypad-autoconfig/Makefile
Rob Loach 7eb4055c9c
make: Clean up make install usage
This fixes warnings that often happened on make install via Lakka.

```
<<< retroarch_joypad_autoconfig:target seq 11 <<<
sha256sum: packages/lakka/retroarch_base/retroarch_joypad_autoconfig/joypad_configs/udev/Nintendo: No such file or directory
sha256sum: Switch: No such file or directory
sha256sum: Left: No such file or directory
sha256sum: Joy-Con.cfg: No such file or directory
sha256sum: packages/lakka/retroarch_base/retroarch_joypad_autoconfig/joypad_configs/udev/Nintendo: No such file or directory
sha256sum: Switch: No such file or directory
sha256sum: Right: No such file or directory
sha256sum: Joy-Con.cfg: No such file or directory
```
2023-10-04 22:52:59 -04:00

20 lines
573 B
Makefile

PREFIX := /usr
INSTALLDIR := $(PREFIX)/share/libretro/autoconfig
DOC_DIR := $(PREFIX)/share/doc/retroarch-joypad-autoconfig
all:
@echo "Nothing to make for retroarch-joypad-autoconfig."
install:
for driver in android dinput hid linuxraw mfi parport qnx sdl2 udev x xinput; do \
for file in $$driver/*.cfg; do \
install -Dm644 -t $(DESTDIR)$(INSTALLDIR)/$$driver "$$file"; \
done \
done
install -Dm644 -t $(DESTDIR)$(DOC_DIR) COPYING README.md retropad_layout.png
test-install: all
DESTDIR=/tmp/build $(MAKE) install
test:
ruby .verify_duplicate_profiles.rb