Fix DESTDIR, and add INSTALLDIR

This commit is contained in:
Rob Loach 2017-07-21 14:12:17 -04:00
parent 68e5fdfdc2
commit 4298254bcf
No known key found for this signature in database
GPG Key ID: 627C60834A74A21A

View File

@ -1,10 +1,13 @@
DESTDIR := /tmp/retroarch-joypad-autoconfig
INSTALLDIR := /usr/share/libretro/autoconfig
all:
@echo "Nothing to make for retroarch-joypad-autoconfig."
install:
mkdir -p $(DESTDIR)
cp -ar * $(DESTDIR)
rm $(DESTDIR)/Makefile
rm $(DESTDIR)/configure
mkdir -p $(DESTDIR)$(INSTALLDIR)
cp -ar * $(DESTDIR)$(INSTALLDIR)
rm -rf $(DESTDIR)$(INSTALLDIR)/Makefile \
$(DESTDIR)$(INSTALLDIR)/configure
test-install: all
DESTDIR=/tmp/build $(MAKE) install