Browse Source

Use depend file for header build dependencies

master
Bert Münnich 10 years ago
parent
commit
e15dabde74
2 changed files with 10 additions and 1 deletions
  1. +1
    -0
      .gitignore
  2. +9
    -1
      Makefile

+ 1
- 0
.gitignore View File

@@ -1,3 +1,4 @@
.depend
config.h config.h
*.o *.o
sxiv sxiv

+ 9
- 1
Makefile View File

@@ -1,4 +1,4 @@
VERSION = git-20141001
VERSION = git-20141024


PREFIX = /usr/local PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man MANPREFIX = $(PREFIX)/share/man
@@ -16,6 +16,14 @@ all: sxiv


$(OBJ): Makefile config.h $(OBJ): Makefile config.h


depend: .depend

.depend: $(SRC)
rm -f ./.depend
$(CC) $(CFLAGS) -MM $^ >./.depend

include .depend

.c.o: .c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -DVERSION=\"$(VERSION)\" -c -o $@ $< $(CC) $(CFLAGS) $(CPPFLAGS) -DVERSION=\"$(VERSION)\" -c -o $@ $<




Loading…
Cancel
Save