Remove the distclean target.
authorTimo Korvola <tkorvola@iki.fi>
Sun, 25 Mar 2018 19:00:36 +0000 (22:00 +0300)
committerTimo Korvola <tkorvola@iki.fi>
Sun, 25 Mar 2018 19:00:36 +0000 (22:00 +0300)
The dependency files are now removed by clean.

Also fix bad package name.  It is just a default though: normally
SDL_PKGS comes from the top Makefile.

src/sdl/Makefile

index f0bd8c74108a0330666926c953658de4a785a965..66a85fa4c906bd1479476da938142392f85c92ea 100644 (file)
@@ -1,6 +1,6 @@
 # For GNU Make.
 
-SDL_PKGS ?= libpng libjpeg libsdl SDL_mixer freetype2 zlib
+SDL_PKGS ?= libpng libjpeg sdl SDL_mixer freetype2 zlib
 
 CFLAGS += `pkg-config $(SDL_PKGS) --cflags`
 
@@ -24,10 +24,7 @@ $(TARGET): $(OBJECTS)
        ranlib $@
 
 clean:
-       -rm -f $(TARGET) $(OBJECTS)
-
-distclean: clean
-       -rm -f $(DEPS)
+       -rm -f $(TARGET) $(OBJECTS) $(DEPS)
 
 %.d: %.c
        gcc -MM $(CFLAGS) $< > $@