|
@@ -44,6 +44,8 @@ SDLTEST_OBJECTS = @SDLTEST_OBJECTS@
|
|
|
|
|
|
WAYLAND_SCANNER = @WAYLAND_SCANNER@
|
|
|
|
|
|
+INSTALL_SDL2_CONFIG = @INSTALL_SDL2_CONFIG@
|
|
|
+
|
|
|
SRC_DIST = *.txt acinclude Android.mk autogen.sh android-project build-scripts cmake cmake_uninstall.cmake.in configure configure.ac debian docs include Makefile.* sdl2-config.cmake.in sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in SDL2Config.cmake src test VisualC.html VisualC VisualC-WinRT Xcode Xcode-iOS wayland-protocols
|
|
|
GEN_DIST = SDL2.spec
|
|
|
|
|
@@ -155,8 +157,11 @@ $(objects)/$(SDLTEST_TARGET): $(SDLTEST_OBJECTS)
|
|
|
|
|
|
install: all install-bin install-hdrs install-lib install-data
|
|
|
install-bin:
|
|
|
+ifeq ($(INSTALL_SDL2_CONFIG),TRUE)
|
|
|
$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(bindir)
|
|
|
$(INSTALL) -m 755 sdl2-config $(DESTDIR)$(bindir)/sdl2-config
|
|
|
+endif
|
|
|
+
|
|
|
install-hdrs: update-revision
|
|
|
$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(includedir)/SDL2
|
|
|
for file in $(HDRS) $(SDLTEST_HDRS); do \
|
|
@@ -179,8 +184,10 @@ install-data:
|
|
|
$(INSTALL) -m 644 $(srcdir)/sdl2.m4 $(DESTDIR)$(datadir)/aclocal/sdl2.m4
|
|
|
$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)/pkgconfig
|
|
|
$(INSTALL) -m 644 sdl2.pc $(DESTDIR)$(libdir)/pkgconfig
|
|
|
+ifeq ($(INSTALL_SDL2_CONFIG),TRUE)
|
|
|
$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)/cmake/SDL2
|
|
|
$(INSTALL) -m 644 sdl2-config.cmake $(DESTDIR)$(libdir)/cmake/SDL2
|
|
|
+endif
|
|
|
|
|
|
uninstall: uninstall-bin uninstall-hdrs uninstall-lib uninstall-data
|
|
|
uninstall-bin:
|