libretro: Add install and uninstall make targets

This commit is contained in:
Adrien Plazas 2017-02-24 14:14:37 +01:00
parent 9a75c06b8f
commit 7d421a28b1

View File

@ -31,6 +31,10 @@ NEED_CRC32 = 1
WANT_NEW_API = 1
CORE_DEFINE := -DWANT_PCE_FAST_EMU -DWANT_STEREO_SOUND
prefix := /usr
libdir := $(prefix)/lib
LIBRETRO_INSTALL_DIR := libretro
TARGET_NAME := mednafen_pce_fast
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
@ -347,4 +351,10 @@ endif
clean:
rm -f $(TARGET) $(OBJECTS)
install:
install -D -m 755 $(TARGET) $(DESTDIR)$(libdir)/$(LIBRETRO_INSTALL_DIR)/$(TARGET)
uninstall:
rm $(DESTDIR)$(libdir)/$(LIBRETRO_INSTALL_DIR)/$(TARGET)
.PHONY: clean