Use depend file for header build dependencies
This commit is contained in:
parent
c33f2ad355
commit
e15dabde74
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
.depend
|
||||
config.h
|
||||
*.o
|
||||
sxiv
|
||||
|
|
10
Makefile
10
Makefile
|
@ -1,4 +1,4 @@
|
|||
VERSION = git-20141001
|
||||
VERSION = git-20141024
|
||||
|
||||
PREFIX = /usr/local
|
||||
MANPREFIX = $(PREFIX)/share/man
|
||||
|
@ -16,6 +16,14 @@ all: sxiv
|
|||
|
||||
$(OBJ): Makefile config.h
|
||||
|
||||
depend: .depend
|
||||
|
||||
.depend: $(SRC)
|
||||
rm -f ./.depend
|
||||
$(CC) $(CFLAGS) -MM $^ >./.depend
|
||||
|
||||
include .depend
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -DVERSION=\"$(VERSION)\" -c -o $@ $<
|
||||
|
||||
|
|
Loading…
Reference in a new issue