Krolyxon
Commit 20009c2

Branches

Refs →

nsxiv20009c2

Move special targets to bottom of Makefile

Author
Bert Münnich
Date
2017-09-08 21:15 +0200
Parent
a1b2fd2
Commit
20009c240bb7d22d9b7844c0868d21f34e2fbd2d

+6 −7

1 file changed

  1. M Makefile +6 −7
M Makefile View
@@ -1,7 +1,6 @@
11 VERSION := git-20170908
22
3−.PHONY: all clean install uninstall
4−.SUFFIXES:
3+all: sxiv
54
65 include config.mk
76
@@ -23,11 +22,7 @@ SRC := autoreload_$(AUTORELOAD).c commands.c image.c main.c options.c thumbs.c u
2322 DEP := $(SRC:.c=.d)
2423 OBJ := $(SRC:.c=.o)
2524
26−all: config.h sxiv
27−
28−$(OBJ): Makefile
29−
30−-include $(DEP)
25+$(OBJ): config.h Makefile
3126
3227 %.o: %.c
3328 @echo "CC $<"
@@ -66,5 +61,9 @@ uninstall:
6661 @echo "REMOVE share/sxiv/"
6762 rm -rf $(DESTDIR)$(PREFIX)/share/sxiv
6863
64+.PHONY: all clean install uninstall
65+.SUFFIXES:
6966 $(V).SILENT:
7067
68+-include $(DEP)
69+