Skip to content

Commit e67f151

Browse files
authored
[maintenance]: add forkexecd C objects to .gitignore (#6517)
Also fix the Makefile, so that 'make clean' also deletes the `.o.d` files. This avoids accidentally adding these files to git (although normally dune would invoke make in _build, only if you manually invoke it would it create these extra files): ``` A ocaml/forkexecd/helper/close_from.o A ocaml/forkexecd/helper/close_from.o.d A ocaml/forkexecd/helper/syslog.o A ocaml/forkexecd/helper/syslog.o.d A ocaml/forkexecd/helper/vfork_helper A ocaml/forkexecd/helper/vfork_helper.o A ocaml/forkexecd/helper/vfork_helper.o.d ```
2 parents c3fa071 + 4cb387d commit e67f151

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ocaml/forkexecd/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
_build/
2+
helper/*.o
3+
helper/*.o.d
4+
helper/vfork_helper
25
.merlin
36
*.install
47

ocaml/forkexecd/helper/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LDFLAGS ?=
55
all:: vfork_helper
66

77
clean::
8-
rm -f vfork_helper *.o
8+
rm -f vfork_helper *.o *.o.d
99

1010
%.o: %.c
1111
$(CC) $(CFLAGS) -MMD -MP -MF $@.d -c -o $@ $<

0 commit comments

Comments
 (0)