aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2017-09-08 21:15:59 +0200
committerBert Münnich <ber.t@posteo.de>2017-09-08 21:15:59 +0200
commit20009c240bb7d22d9b7844c0868d21f34e2fbd2d (patch)
tree4a74c034511bf7d078e100f9077ddbdcf37d76b4
parenta1b2fd277432a4aa3db11ad9f88ee9abfbacf818 (diff)
Move special targets to bottom of Makefile
-rw-r--r--Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index a31df1e..bc4f819 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,6 @@
VERSION := git-20170908
-.PHONY: all clean install uninstall
-.SUFFIXES:
+all: sxiv
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)
OBJ := $(SRC:.c=.o)
-all: config.h sxiv
-
-$(OBJ): Makefile
-
--include $(DEP)
+$(OBJ): config.h Makefile
%.o: %.c
@echo "CC $<"
@@ -66,5 +61,9 @@ uninstall:
@echo "REMOVE share/sxiv/"
rm -rf $(DESTDIR)$(PREFIX)/share/sxiv
+.PHONY: all clean install uninstall
+.SUFFIXES:
$(V).SILENT:
+-include $(DEP)
+