Makefile.in
branchSDL-1.3
changeset 1670 eef792d31de8
parent 1664 cd3db072ba8a
child 1692 75f2ace8511a
equal deleted inserted replaced
1669:9857d21967bb 1670:eef792d31de8
   122 uninstall-man:
   122 uninstall-man:
   123 	for src in $(srcdir)/docs/man3/*.3; do \
   123 	for src in $(srcdir)/docs/man3/*.3; do \
   124 	    file=`echo $$src | sed -e 's|^.*/||'`; \
   124 	    file=`echo $$src | sed -e 's|^.*/||'`; \
   125 	    rm -f $(mandir)/man3/$$file; \
   125 	    rm -f $(mandir)/man3/$$file; \
   126 	done
   126 	done
   127 
       
   128 indent:
       
   129 	cd $(srcdir) && \
       
   130 	find . \( \
       
   131 	    -name '*.h' -o \
       
   132 	    -name '*.c' -o \
       
   133 	    -name '*.cc' \) \
       
   134 	    -exec indent {} \;
       
   135 
   127 
   136 clean:
   128 clean:
   137 	rm -rf $(objects)
   129 	rm -rf $(objects)
   138 	if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
   130 	if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
   139 
   131 
   171 	rm -rf $(distdir)
   163 	rm -rf $(distdir)
   172 
   164 
   173 rpm: $(distfile)
   165 rpm: $(distfile)
   174 	rpmbuild -ta $?
   166 	rpmbuild -ta $?
   175 
   167 
       
   168 # Run indent on the source to standardize coding style
       
   169 indent:
       
   170 	@echo "Running indent... modified files:"
       
   171 	@cd $(srcdir) && \
       
   172 	find . \( \
       
   173 	    -name '*.h' -o \
       
   174 	    -name '*.c' -o \
       
   175 	    -name '*.cc' \) \
       
   176 	    -print | \
       
   177 	while read file; do \
       
   178 	    indent "$$file" -o "$$file.indent"; \
       
   179 	    if cmp "$$file" "$$file.indent" >/dev/null; then \
       
   180 	        rm -f "$$file.indent"; \
       
   181 	    else \
       
   182 	        echo "$$file"; \
       
   183 	        mv -f "$$file.indent" "$$file"; \
       
   184 	    fi; \
       
   185 	done
       
   186 
       
   187 # Run indent and then commit modified files
       
   188 commit: indent
       
   189 	svn commit
       
   190 
   176 # Create a SVN snapshot that people can run update on
   191 # Create a SVN snapshot that people can run update on
   177 snapshot:
   192 snapshot:
   178 	svn co svn://libsdl.org/trunk/SDL
   193 	svn co svn://libsdl.org/trunk/SDL
   179 	(cd SDL && ./autogen.sh && rm -rf autom4te.cache)
   194 	(cd SDL && ./autogen.sh && rm -rf autom4te.cache)
   180 	cp SDL/include/SDL_config.h.default SDL/include/SDL_config.h
   195 	cp SDL/include/SDL_config.h.default SDL/include/SDL_config.h