| 1 | PREFIX ?= /usr |
| 2 | INSTALLDIR := $(PREFIX)/share/libretro/info |
| 3 | |
| 4 | all: |
| 5 | @echo "Nothing to make for libretro-core-info. Available commands:\n" |
| 6 | @echo " make install Installs files to $(DESTDIR)$(INSTALLDIR)" |
| 7 | @echo " make update Updates the local info files" |
| 8 | @echo " make test-install Runs through a test install\n" |
| 9 | |
| 10 | install: |
| 11 | mkdir -p $(DESTDIR)$(INSTALLDIR) |
| 12 | cp -a *.info $(DESTDIR)$(INSTALLDIR) |
| 13 | |
| 14 | update: |
| 15 | rm -rf libretro-super *.info |
| 16 | git clone --depth=1 https://github.com/libretro/libretro-super.git |
| 17 | cp -f libretro-super/dist/info/*.info . |
| 18 | |
| 19 | test-install: all |
| 20 | DESTDIR=/tmp/build $(MAKE) install |