Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't add Lex/Par.hs to sdist tarball #466

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions source/BNFC.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ library
-- BNFC.Lex
-- -- Generated by happy
-- BNFC.Par
-- 2023-11-03 We cannot add BNFC.{Lex,Par} as then the Lex.x and Par.y files
-- are not bundled by cabal dist.
-- Just make sure that there is no src/BNFC/{Lex,Par}.hs before running cabal sdist,
-- otherwise we will end up with both Lex.hs and Lex.x (resp. Par.{hs,y})
-- which will cause alex/happy to not be run, leading to build failures.
autogen-modules:
-- Generated by cabal
Paths_BNFC
other-modules:
-- Generated by cabal
Paths_BNFC
Expand Down
9 changes: 9 additions & 0 deletions source/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ TAGS :
# Binary package (tgz, for linux)
bdist: dist/${BDIST_TAG}.tar.gz

# Source package
# Andreas, 2023-11-03, PR #466: need to remove BNFC/{Lex,Par}.hs,
# otherwise they will be shipped in the sdist package
# and cause compilation to fail.
sdist:
make -C src clean
cabal sdist

# OLD goal
dist/%.tar.gz:
cabal v1-clean
cabal v1-install ${CABAL_OPTS} --only-dependencies
Expand Down
4 changes: 4 additions & 0 deletions source/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,8 @@ fake-cabal :
rm-fake-cabal :
rm inferior-haskell-find-project-root.cabal

.PHONY: clean
clean :
rm BNFC/Lex.hs BNFC/Par.hs BNFC/*.bak

#EOF