Commit f531db8a authored by xantares's avatar xantares

Handle DESTDIR in install target

parent 49cecdfe
......@@ -170,6 +170,7 @@ LDFLAGS =
PSPSDK=$(shell psp-config --pspsdk-path)
PSPDIR=$(shell psp-config --psp-prefix)
include $(PSPSDK)/lib/build.mak
......@@ -188,7 +189,10 @@ pte_threadStart.o: pte_threadStart.c
install: $(TARGET_LIB)
@cp -v $(TARGET_LIB) `psp-config --psp-prefix`/lib
@cp -v *.h `psp-config --psp-prefix`/include
@install -d $(DESTDIR)$(PSPDIR)/lib
@install -m644 $(TARGET_LIB) $(DESTDIR)$(PSPDIR)/lib
@install -d $(DESTDIR)$(PSPDIR)/include
@install -m644 *.h $(DESTDIR)$(PSPDIR)/include
@install -m644 ../../*.h $(DESTDIR)$(PSPDIR)/include
@echo "Done."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment