comparison Makefile.in @ 1603:64710b9f3eeb

Fixed bug #171 SDL_config.h is no longer in CVS. Instead, configure will generate it for systems that use configure, and we always copy SDL_config.h.default to SDL_config.h before generating a snapshot or release archive. Also fixed a couple of uninstall issues.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 23 Mar 2006 21:28:33 +0000
parents dc4bcfeb927e
children 5bbfc3e20e10
comparison
equal deleted inserted replaced
1602:cd97a8e39874 1603:64710b9f3eeb
97 for src in $(srcdir)/docs/man3/*.3; do \ 97 for src in $(srcdir)/docs/man3/*.3; do \
98 file=`echo $$src | sed -e 's|^.*/||'`; \ 98 file=`echo $$src | sed -e 's|^.*/||'`; \
99 $(INSTALL) -m 644 $$src $(mandir)/man3/$$file; \ 99 $(INSTALL) -m 644 $$src $(mandir)/man3/$$file; \
100 done 100 done
101 101
102 uninstall: uninstall-bin uninstall-hdrs uninstall-lib uninstall-man 102 uninstall: uninstall-bin uninstall-hdrs uninstall-lib uninstall-data uninstall-man
103 uninstall-bin: 103 uninstall-bin:
104 rm -f $(bindir)/sdl-config 104 rm -f $(bindir)/sdl-config
105 uninstall-hdrs: 105 uninstall-hdrs:
106 for src in $(srcdir)/include/*.h; do \ 106 for src in $(srcdir)/include/*.h; do \
107 file=`echo $$src | sed -e 's|^.*/||'`; \ 107 file=`echo $$src | sed -e 's|^.*/||'`; \
108 rm -f $(includedir)/SDL/$$file; \ 108 rm -f $(includedir)/SDL/$$file; \
109 done 109 done
110 rm -f $(includedir)/SDL/SDL_config.h 110 rm -f $(includedir)/SDL/SDL_config.h
111 -rmdir $(includedir)/SDL
111 uninstall-lib: 112 uninstall-lib:
112 $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(TARGET) 113 $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(TARGET)
113 rm -f $(libdir)/$(SDLMAIN_TARGET) 114 rm -f $(libdir)/$(SDLMAIN_TARGET)
114 uninstall-data: 115 uninstall-data:
115 rm -f $(datadir)/aclocal/sdl.m4 116 rm -f $(datadir)/aclocal/sdl.m4
123 rm -rf $(objects) 124 rm -rf $(objects)
124 if test -f test/Makefile; then (cd test; $(MAKE) $@); fi 125 if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
125 126
126 distclean: clean 127 distclean: clean
127 rm -f Makefile include/SDL_config.h sdl-config 128 rm -f Makefile include/SDL_config.h sdl-config
129 rm -f include/SDL_config.h sdl-config
128 rm -f SDL.qpg 130 rm -f SDL.qpg
129 rm -f config.status config.cache config.log libtool $(depend) 131 rm -f config.status config.cache config.log libtool $(depend)
130 rm -rf $(srcdir)/autom4te* 132 rm -rf $(srcdir)/autom4te*
131 find $(srcdir) \ 133 find $(srcdir) \( \
132 -name '*~' -o -name '*.bak' -o -name '*.old' -o -name '*.rej' -o \ 134 -name '*~' -o \
133 -name '.#*' \ 135 -name '*.bak' -o \
136 -name '*.old' -o \
137 -name '*.rej' -o \
138 -name '*.orig' -o \
139 -name '.#*' \) \
134 -exec rm -f {} \; 140 -exec rm -f {} \;
135 cp $(srcdir)/include/SDL_config.h.minimal $(srcdir)/include/SDL_config.h 141 cp $(srcdir)/include/SDL_config.h.default $(srcdir)/include/SDL_config.h
136 if test -f test/Makefile; then (cd test; $(MAKE) $@); fi 142 if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
137 143
138 dist $(distfile): 144 dist $(distfile):
139 $(SHELL) $(auxdir)/mkinstalldirs $(distdir) 145 $(SHELL) $(auxdir)/mkinstalldirs $(distdir)
140 tar cf - $(DIST) | (cd $(distdir); tar xf -) 146 tar cf - $(DIST) | (cd $(distdir); tar xf -)
147 cp $(distdir)/include/SDL_config.h.default $(distdir)/include/SDL_config.h
141 rm -rf `find $(distdir) -name CVS` 148 rm -rf `find $(distdir) -name CVS`
142 rm -f `find $(distdir) -name '.cvsignore'` 149 rm -f `find $(distdir) -name '.cvsignore'`
143 rm -f `find $(distdir) -name '.#*'` 150 rm -f `find $(distdir) -name '.#*'`
144 rmdir `find $(distdir) -type d -empty` 151 rmdir `find $(distdir) -type d -empty`
145 tar cvf - $(distdir) | gzip --best >$(distfile) 152 tar cvf - $(distdir) | gzip --best >$(distfile)
152 CVSROOT = :pserver:guest@libsdl.org:/home/sdlweb/libsdl.org/cvs 159 CVSROOT = :pserver:guest@libsdl.org:/home/sdlweb/libsdl.org/cvs
153 snapshot: 160 snapshot:
154 cvs -d $(CVSROOT) login 161 cvs -d $(CVSROOT) login
155 cvs -d $(CVSROOT) checkout -P SDL12 162 cvs -d $(CVSROOT) checkout -P SDL12
156 (cd SDL12 && ./autogen.sh && rm -rf autom4te.cache) 163 (cd SDL12 && ./autogen.sh && rm -rf autom4te.cache)
164 cp SDL12/include/SDL_config.h.default SDL12/include/SDL_config.h
157 mv SDL12 SDL-1.2 165 mv SDL12 SDL-1.2
158 tar zcf $(HOME)/SDL-1.2.tar.gz SDL-1.2 166 tar zcf $(HOME)/SDL-1.2.tar.gz SDL-1.2
159 rm -f $(HOME)/SDL-1.2.zip 167 rm -f $(HOME)/SDL-1.2.zip
160 zip -r $(HOME)/SDL-1.2.zip SDL-1.2 168 zip -r $(HOME)/SDL-1.2.zip SDL-1.2
161 rm -rf SDL-1.2 169 rm -rf SDL-1.2