nsxiv20009c2
Move special targets to bottom of Makefile
+6 −7
1 file changed
- M Makefile +6 −7
| @@ -1,7 +1,6 @@ | |||
| 1 | 1 | VERSION := git-20170908 | |
| 2 | 2 | ||
| 3 | − | .PHONY: all clean install uninstall | |
| 4 | − | .SUFFIXES: | |
| 3 | + | all: sxiv | |
| 5 | 4 | ||
| 6 | 5 | include config.mk | |
| 7 | 6 | ||
| @@ -23,11 +22,7 @@ SRC := autoreload_$(AUTORELOAD).c commands.c image.c main.c options.c thumbs.c u | |||
| 23 | 22 | DEP := $(SRC:.c=.d) | |
| 24 | 23 | OBJ := $(SRC:.c=.o) | |
| 25 | 24 | ||
| 26 | − | all: config.h sxiv | |
| 27 | − | ||
| 28 | − | $(OBJ): Makefile | |
| 29 | − | ||
| 30 | − | -include $(DEP) | |
| 25 | + | $(OBJ): config.h Makefile | |
| 31 | 26 | ||
| 32 | 27 | %.o: %.c | |
| 33 | 28 | @echo "CC $<" | |
| @@ -66,5 +61,9 @@ uninstall: | |||
| 66 | 61 | @echo "REMOVE share/sxiv/" | |
| 67 | 62 | rm -rf $(DESTDIR)$(PREFIX)/share/sxiv | |
| 68 | 63 | ||
| 64 | + | .PHONY: all clean install uninstall | |
| 65 | + | .SUFFIXES: | |
| 69 | 66 | $(V).SILENT: | |
| 70 | 67 | ||
| 68 | + | -include $(DEP) | |
| 69 | + | ||