Make it possible to run "make dist" from a separate build directory.
authorSam Lantinga <slouken@libsdl.org>
Tue, 15 Mar 2011 23:26:22 -0700
changeset 5498ef1db08c40ac
parent 5497 70de9c52220e
child 5499 2b8e6d1e3817
Make it possible to run "make dist" from a separate build directory.
Makefile.in
     1.1 --- a/Makefile.in	Tue Mar 15 22:42:26 2011 -0700
     1.2 +++ b/Makefile.in	Tue Mar 15 23:26:22 2011 -0700
     1.3 @@ -36,7 +36,8 @@
     1.4  SDLMAIN_TARGET = libSDLmain.a
     1.5  SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
     1.6  
     1.7 -DIST = acinclude Android.mk autogen.sh Borland.html Borland.zip BUGS build-scripts configure configure.in COPYING CREDITS include INSTALL Makefile.minimal Makefile.in README* sdl-config.in sdl.m4 sdl.pc.in SDL.spec SDL.spec.in src test TODO VisualC.html VisualC VisualCE Watcom-Win32.zip WhatsNew Xcode Xcode-iPhoneOS
     1.8 +SRC_DIST = acinclude Android.mk autogen.sh Borland.html Borland.zip BUGS build-scripts configure configure.in COPYING CREDITS include INSTALL Makefile.minimal Makefile.in README* sdl-config.in sdl.m4 sdl.pc.in SDL.spec.in src test TODO VisualC.html VisualC VisualCE Watcom-Win32.zip WhatsNew Xcode Xcode-iPhoneOS
     1.9 +GEN_DIST = SDL.spec
    1.10  
    1.11  HDRS = \
    1.12  	SDL.h \
    1.13 @@ -184,7 +185,8 @@
    1.14  
    1.15  dist $(distfile):
    1.16  	$(SHELL) $(auxdir)/mkinstalldirs $(distdir)
    1.17 -	tar cf - $(DIST) | (cd $(distdir); tar xf -)
    1.18 +	(cd $(srcdir); tar cf - $(SRC_DIST)) | (cd $(distdir); tar xf -)
    1.19 +	tar cf - $(GEN_DIST) | (cd $(distdir); tar xf -)
    1.20  	find $(distdir) \( \
    1.21  	    -name '*~' -o \
    1.22  	    -name '*.bak' -o \