Skip to content

Commit 1a1f5ff

Browse files
committed
use .d scheme for header dependencies
1 parent 7430f2d commit 1a1f5ff

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Makefile.pi

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,19 @@ EXECS=set_xcvr
1717

1818
CFILES = set_xcvr.c
1919

20-
all: depend $(EXECS)
20+
all: $(EXECS)
2121

2222
install: $(EXECS)
2323
rsync -a $(EXECS) $(BINDIR)
2424

2525
clean:
26-
rm -f *.o *.a .depend $(EXECS)
26+
rm -f *.o *.a *.d .depend $(EXECS)
2727

28-
depend: .depend
28+
DEPS = $(CFILES:.c=.d)
2929

30-
.depend: $(CFILES)
31-
rm -f .depend
32-
$(CC) $(CFLAGS) -MM $(CFILES) > .depend
30+
-include $(DEPS)
3331

34-
-include .depend
35-
36-
.PHONY: clean all install depend
32+
.PHONY: clean all install
3733

3834
# Executables
3935
set_xcvr: set_xcvr.o config.o

0 commit comments

Comments
 (0)