Move special targets to bottom of Makefile

This commit is contained in:
Bert Münnich 2017-09-08 21:15:59 +02:00
parent a1b2fd2774
commit 20009c240b

View File

@ -1,7 +1,6 @@
VERSION := git-20170908 VERSION := git-20170908
.PHONY: all clean install uninstall all: sxiv
.SUFFIXES:
include config.mk include config.mk
@ -23,11 +22,7 @@ SRC := autoreload_$(AUTORELOAD).c commands.c image.c main.c options.c thumbs.c u
DEP := $(SRC:.c=.d) DEP := $(SRC:.c=.d)
OBJ := $(SRC:.c=.o) OBJ := $(SRC:.c=.o)
all: config.h sxiv $(OBJ): config.h Makefile
$(OBJ): Makefile
-include $(DEP)
%.o: %.c %.o: %.c
@echo "CC $<" @echo "CC $<"
@ -66,5 +61,9 @@ uninstall:
@echo "REMOVE share/sxiv/" @echo "REMOVE share/sxiv/"
rm -rf $(DESTDIR)$(PREFIX)/share/sxiv rm -rf $(DESTDIR)$(PREFIX)/share/sxiv
.PHONY: all clean install uninstall
.SUFFIXES:
$(V).SILENT: $(V).SILENT:
-include $(DEP)