0
0
mirror of https://github.com/libretro/libretro-database synced 2025-05-28 07:52:09 +00:00
Files

40 lines
1.2 KiB
Makefile
Raw Permalink Normal View History

# libretro-database
#
# This file provides some install and building commands for libretro-database.
#
# make install
# Installs the needed files to the given DESTDIR and INSTALLDIR.
#
# make build
# Builds the RDB files using libretro-super.
2017-07-24 23:16:44 -04:00
PREFIX := /usr
INSTALLDIR := $(PREFIX)/share/libretro/database
2017-07-21 14:03:20 -04:00
2017-06-21 20:18:01 -04:00
all:
2017-07-20 20:48:39 -04:00
@echo "Nothing to make for libretro-database."
2017-06-21 20:18:01 -04:00
install:
2017-07-21 14:03:20 -04:00
mkdir -p $(DESTDIR)$(INSTALLDIR)
cp -ar -t $(DESTDIR)$(INSTALLDIR) cht cursors rdb
find $(DESTDIR)$(INSTALLDIR) -type f -name "*.zip" -delete
find $(DESTDIR)$(INSTALLDIR) -type f -name "*.xml" -delete
2017-07-21 14:03:20 -04:00
test-install: all
DESTDIR=/tmp/build $(MAKE) install
2019-06-25 00:40:20 -04:00
libretro-super:
git clone https://github.com/libretro/libretro-super.git
libretro-super/retroarch: libretro-super
2019-06-25 01:05:52 -04:00
cd libretro-super && SHALLOW_CLONE=1 ./libretro-fetch.sh retroarch
2019-06-25 00:40:20 -04:00
build: libretro-super/retroarch
rm -rf libretro-super/retroarch/media/libretrodb/dat
rm -rf libretro-super/retroarch/media/libretrodb/metadat
rm -rf libretro-super/retroarch/media/libretrodb/rdb
cp -rf dat metadat rdb libretro-super/retroarch/media/libretrodb
cd libretro-super && ./libretro-build-database.sh
rm -rf rdb
cp -rf libretro-super/retroarch/media/libretrodb/rdb .