diff options
| author | Bert Münnich <ber.t@posteo.de> | 2014-10-24 10:50:14 +0200 | 
|---|---|---|
| committer | Bert Münnich <ber.t@posteo.de> | 2014-10-24 10:50:14 +0200 | 
| commit | e15dabde747c71dfcf49e4818099c4cc526c2d21 (patch) | |
| tree | 6149172ee947be889e99d95341a11fa2332318c7 | |
| parent | c33f2ad355a291cb1a919074ceaa25f52bc85b76 (diff) | |
Use depend file for header build dependencies
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | Makefile | 10 | 
2 files changed, 10 insertions, 1 deletions
| @@ -1,3 +1,4 @@ +.depend  config.h  *.o  sxiv @@ -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 $@ $< | 
