Makefile.in
changeset 5345 0202f62906ca
parent 5341 fcde22671032
child 5346 437e54382293
     1.1 --- a/Makefile.in	Fri Feb 18 09:30:09 2011 -0800
     1.2 +++ b/Makefile.in	Fri Feb 18 11:19:34 2011 -0800
     1.3 @@ -108,15 +108,12 @@
     1.4  $(objects):
     1.5  	$(SHELL) $(auxdir)/mkinstalldirs $@
     1.6  
     1.7 -# To make sure parallel builds will not fail
     1.8 -include/SDL_revision.h: update-revision
     1.9 -
    1.10  update-revision:
    1.11  	$(SHELL) $(auxdir)/updaterev.sh
    1.12  
    1.13 -.PHONY: all update-revision install install-bin install-hdrs install-lib install-data uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data clean distclean dist $(OBJECTS:.lo=.d)
    1.14 +.PHONY: all install install-bin install-hdrs install-lib install-data uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data clean distclean dist $(OBJECTS:.lo=.d)
    1.15  
    1.16 -$(objects)/$(TARGET): update-revision $(OBJECTS) $(VERSION_OBJECTS)
    1.17 +$(objects)/$(TARGET): $(OBJECTS) $(VERSION_OBJECTS)
    1.18  	$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
    1.19  
    1.20  $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
    1.21 @@ -127,13 +124,18 @@
    1.22  install-bin:
    1.23  	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(bindir)
    1.24  	$(INSTALL) -m 755 sdl-config $(DESTDIR)$(bindir)/sdl-config
    1.25 -install-hdrs: include/SDL_revision.h
    1.26 +install-hdrs: update-revision
    1.27  	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(includedir)/SDL
    1.28  	for file in $(HDRS); do \
    1.29  	    $(INSTALL) -m 644 $(srcdir)/include/$$file $(DESTDIR)$(includedir)/SDL/$$file; \
    1.30  	done
    1.31  	$(INSTALL) -m 644 include/SDL_config.h $(DESTDIR)$(includedir)/SDL/SDL_config.h
    1.32 -	$(INSTALL) -m 644 include/SDL_revision.h $(DESTDIR)$(includedir)/SDL/SDL_revision.h
    1.33 +	if test -f include/SDL_revision.h; then \
    1.34 +	    $(INSTALL) -m 644 include/SDL_revision.h $(DESTDIR)$(includedir)/SDL/SDL_revision.h; \
    1.35 +	else \
    1.36 +	    $(INSTALL) -m 644 $(srcdir)/include/SDL_revision.h $(DESTDIR)$(includedir)/SDL/SDL_revision.h; \
    1.37 +	fi
    1.38 +
    1.39  install-lib: $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET)
    1.40  	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)
    1.41  	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
    1.42 @@ -167,7 +169,7 @@
    1.43  	if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
    1.44  
    1.45  distclean: clean
    1.46 -	rm -f Makefile sdl-config
    1.47 +	rm -f Makefile Makefile.rules sdl-config
    1.48  	rm -f SDL.qpg
    1.49  	rm -f config.status config.cache config.log libtool
    1.50  	rm -rf $(srcdir)/autom4te*