From: Timo Korvola Date: Sun, 25 Mar 2018 19:00:36 +0000 (+0300) Subject: Remove the distclean target. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=85b016d978eec7972cabbb8162b16c0b5b89f2f0;p=liskon_frotz.git Remove the distclean target. 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. --- diff --git a/src/sdl/Makefile b/src/sdl/Makefile index f0bd8c7..66a85fa 100644 --- a/src/sdl/Makefile +++ b/src/sdl/Makefile @@ -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) $< > $@