GNU make has trouble with creation times of dirs, apparently.
Chris Pressey
7 years ago
21 | 21 | |
22 | 22 | all: $(PROGS) |
23 | 23 | |
24 | bin: | |
24 | bin/.exists: | |
25 | 25 | mkdir -p bin |
26 | touch bin/.exists | |
26 | 27 | |
27 | bin/bef: bin src/bef.c | |
28 | bin/bef: bin/.exists src/bef.c | |
28 | 29 | $(CC) $(CFLAGS) src/bef.c -o bin/bef |
29 | 30 | |
30 | bin/befprof: bin src/befprof.c | |
31 | bin/befprof: bin/.exists src/befprof.c | |
31 | 32 | $(CC) $(CFLAGS) src/befprof.c -o bin/befprof |
32 | 33 | |
33 | bin/bef2c: bin src/bef2c.c | |
34 | bin/bef2c: bin/.exists src/bef2c.c | |
34 | 35 | $(CC) $(CFLAGS) src/bef2c.c -o bin/bef2c |
35 | 36 | |
36 | 37 | clean: |
37 | rm -f src/*.o | |
38 | rm -f *.o src/*.o | |
38 | 39 | |
39 | 40 | distclean: |
40 | 41 | rm -rf bin/* |