Skip to content

Commit

Permalink
Fix last commit
Browse files Browse the repository at this point in the history
Add `/dev/null` to the list of files to `cat` so that `cat` doesn't try
to read from stdin, and also to ensure that the target files always get
created.
  • Loading branch information
Nicholas Coltharp committed Jul 25, 2024
1 parent 597d581 commit ef11afa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/base-src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ GHC_BASE_MID = $(wildcard module-edits/GHC/Base/midamble.v module-edits/GHC/Mayb
GHC_BASE_EDITS = $(wildcard module-edits/GHC/Base/edits module-edits/GHC/Maybe/edits)

$(OUT)/GHC/Base.v: $(GHC_BASE_PRE) $(GHC_BASE_MID) $(GHC_BASE_EDITS) edits
if [ -n "$(GHC_BASE_PRE)" ]; then cat $(GHC_BASE_PRE) > Base_preamble.v; fi
if [ -n "$(GHC_BASE_MID)" ]; then cat $(GHC_BASE_MID) > Base_midamble.v; fi
cat /dev/null $(GHC_BASE_PRE) > Base_preamble.v
cat /dev/null $(GHC_BASE_MID) > Base_midamble.v
$(HS_TO_COQ) -p Base_preamble.v \
--midamble Base_midamble.v \
$(addprefix -e , $(GHC_BASE_EDITS)) \
Expand Down

0 comments on commit ef11afa

Please sign in to comment.