Skip to content

Commit

Permalink
Correct jbuild-ignore
Browse files Browse the repository at this point in the history
Since beta15, jbuilder no longer permits subdirectories in jbuild-ignore
files so the sub-directory ones are split off to separate files.

Signed-off-by: David Allsopp <[email protected]>
  • Loading branch information
dra27 committed Jan 11, 2018
1 parent 8896266 commit 34f6c34
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ src_ext/*.tbz
src_ext/*.tar.gz
src_ext/archives/*
src_ext/*.download
src_ext/jbuild-ignore
*.tar.bz2
*.annot
*.tar.gz
Expand Down
2 changes: 0 additions & 2 deletions jbuild-ignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
bootstrap
src_ext/jbuilder
tests/packages
9 changes: 7 additions & 2 deletions src_ext/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ endif
jbuilder/_build/install/default/bin/jbuilder$(EXE): $(JBUILDER_CLONE)
cd jbuilder && ocaml bootstrap.ml && ./boot.exe

clone: $(JBUILDER_CLONE) $(SRC_EXTS:=.stamp)
.PHONY: ext-ignore
ext-ignore:
@echo "This file is automatically generated" > jbuild-ignore
@echo jbuilder >> jbuild-ignore

clone: $(JBUILDER_CLONE) $(SRC_EXTS:=.stamp) | ext-ignore
@

.PHONY: archives
Expand Down Expand Up @@ -132,5 +137,5 @@ clean:

distclean: clean
rm -rf jbuilder $(SRC_EXTS) mccs
rm -f *.tar.gz *.tbz *.stamp *.download
rm -f *.tar.gz *.tbz *.stamp *.download jbuild-ignore
[ -d archives ] && ([ "$$(find archives -maxdepth 0 -type d -empty)" != "" ] && rmdir archives || echo "WARNING! $$(pwd)/archives/ not empty so left") || true
1 change: 1 addition & 0 deletions tests/jbuild-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packages

0 comments on commit 34f6c34

Please sign in to comment.