소스 검색

Fix Makefile depend file usage

Creating the .depend file requires the config.h file to exist and
suppress make's complaints if the .depend file doesn't exist when
initially parsing the makefile.
master
Tim Harder Bert Münnich 10 년 전
부모
커밋
33b8148614
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. +4
    -3
      Makefile

+ 4
- 3
Makefile 파일 보기

@@ -1,4 +1,4 @@
VERSION = 1.3
VERSION = git-20141025

PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
@@ -14,7 +14,8 @@ OBJ = $(SRC:.c=.o)

all: sxiv

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

depend: .depend

@@ -22,7 +23,7 @@ depend: .depend
rm -f ./.depend
$(CC) $(CFLAGS) -MM $^ >./.depend

include .depend
-include .depend

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


불러오는 중...
취소
저장