1PREFIX ?= /usr 2INSTALLDIR := $(PREFIX)/share/libretro/info 3 4all: 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 10install: 11 mkdir -p $(DESTDIR)$(INSTALLDIR) 12 cp -a *.info $(DESTDIR)$(INSTALLDIR) 13 14update: 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 19test-install: all 20 DESTDIR=/tmp/build $(MAKE) install 21