diff Makefile.minimal @ 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 38c1eb6b0083
children a72a5f62d6b7
line wrap: on
line diff
--- a/Makefile.minimal	Thu Mar 23 17:31:12 2006 +0000
+++ b/Makefile.minimal	Thu Mar 23 21:28:33 2006 +0000
@@ -5,6 +5,7 @@
 AR	= ar
 RANLIB	= ranlib
 
+CONFIG_H = include/SDL_config.h
 TARGET  = libSDL.a
 SOURCES = \
 	src/*.c \
@@ -30,9 +31,12 @@
 
 all: $(TARGET)
 
-$(TARGET): $(OBJECTS)
+$(TARGET): $(CONFIG_H) $(OBJECTS)
 	$(AR) crv $@ $^
 	$(RANLIB) $@
 
+$(CONFIG_H):
+	cp $(CONFIG_H).default $(CONFIG_H)
+
 clean:
 	rm -f $(TARGET) $(OBJECTS)