Makefile.in
changeset 7222 2435b221d77d
parent 6901 57dcaecb19e5
child 7228 9cf41f66562c
equal deleted inserted replaced
7221:122c97a210bc 7222:2435b221d77d
    37 SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
    37 SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
    38 
    38 
    39 SDLTEST_TARGET = libSDL2_test.a
    39 SDLTEST_TARGET = libSDL2_test.a
    40 SDLTEST_OBJECTS = @SDLTEST_OBJECTS@
    40 SDLTEST_OBJECTS = @SDLTEST_OBJECTS@
    41 
    41 
    42 SRC_DIST = acinclude Android.mk autogen.sh BUGS build-scripts configure configure.in COPYING CREDITS debian include INSTALL Makefile.minimal Makefile.in README* sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in src test TODO VisualC.html VisualC WhatsNew Xcode Xcode-iOS
    42 SRC_DIST = *.txt acinclude Android.mk autogen.sh android-project build-scripts cmake configure configure.in debian include Makefile.* sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in src test VisualC.html VisualC WhatsNew Xcode Xcode-iOS
    43 GEN_DIST = SDL2.spec
    43 GEN_DIST = SDL2.spec
    44 
    44 
    45 HDRS = \
    45 HDRS = \
    46 	SDL.h \
    46 	SDL.h \
    47 	SDL_assert.h \
    47 	SDL_assert.h \
    48 	SDL_atomic.h \
    48 	SDL_atomic.h \
    49 	SDL_audio.h \
    49 	SDL_audio.h \
    50         SDL_bits.h \
    50     SDL_bits.h \
    51 	SDL_blendmode.h \
    51 	SDL_blendmode.h \
    52 	SDL_clipboard.h \
    52 	SDL_clipboard.h \
    53 	SDL_cpuinfo.h \
    53 	SDL_cpuinfo.h \
    54 	SDL_endian.h \
    54 	SDL_endian.h \
    55 	SDL_error.h \
    55 	SDL_error.h \
   214 	tar cvf - $(distdir) | gzip --best >$(distfile)
   214 	tar cvf - $(distdir) | gzip --best >$(distfile)
   215 	rm -rf $(distdir)
   215 	rm -rf $(distdir)
   216 
   216 
   217 rpm: $(distfile)
   217 rpm: $(distfile)
   218 	rpmbuild -ta $?
   218 	rpmbuild -ta $?
   219 
       
   220 # Run indent on the source to standardize coding style
       
   221 indent:
       
   222 	@echo "Running indent... modified files:"
       
   223 	@cd $(srcdir) && \
       
   224 	find . \( \
       
   225 	    -name '*.h' -o \
       
   226 	    -name '*.c' -o \
       
   227 	    -name '*.cc' \) \
       
   228 	    -print | fgrep -v ./Xcode | \
       
   229 	while read file; do \
       
   230 	    indent "$$file" -o "$$file.indent"; \
       
   231 	    if cmp "$$file" "$$file.indent" >/dev/null; then \
       
   232 	        rm -f "$$file.indent"; \
       
   233 	    else \
       
   234 	        echo "$$file"; \
       
   235 	        mv -f "$$file.indent" "$$file"; \
       
   236 	    fi; \
       
   237 	done
       
   238 
       
   239 # Run indent and then commit modified files
       
   240 commit: indent
       
   241 	hg commit