Skip to content

Update manual makefiles #46

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

Merged
merged 4 commits into from
Dec 30, 2019

Conversation

milancurcic
Copy link
Member

This PR:

  • Removes old (dummy) source files mod_stdlib.f90 and test_dummy.f90
  • Updates manual Makefiles so they build the library and tests
  • Updates the README to include build instructions with CMake or manual Makefiles

@milancurcic milancurcic requested a review from certik December 24, 2019 21:30
@milancurcic
Copy link
Member Author

Considering #48, can we rename Makefile.manual to just Makefile and require out-of-source builds for CMake? This would do away with having to make -f Makefile.manual which is quite tedious.

@certik
Copy link
Member

certik commented Dec 27, 2019 via email

@milancurcic
Copy link
Member Author

No problem, it's just verbose. I normally use CMake, and manual Makefiles only when I update them, i.e. this PR.

I realize now that this may even serve to motivate using CMake, for those who are on the fence.

@certik
Copy link
Member

certik commented Dec 27, 2019 via email

@zbeekman
Copy link
Member

Relevant to the discussion in #50: do we want to maintain (test) in source and out of source CMake builds. Out of source is cleaner IMO, and less error prone, but I don't care that much other than pointing out that this is yet another combinatorial expansion of build systems beyond maintaining CMake in parallel to Makefiles, now we need to maintain (i.e., test) in source builds and out of source builds. This seems like unnecessary complexity to me.

Copy link
Member

@zbeekman zbeekman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general: LGTM.

I'm an advocate for defaulting to out-of-source CMake builds because I think there are fewer issues to bite the developer and user, and cleanup is super easy. So I made that one suggestion.

README.md Outdated
### Build with CMake

```
cmake .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd advocate pointing people in the direction of out of source builds. There is less that can go wrong and surprise you, and cleanup is a snap.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. I scratch my head every time I want to clean the top-level directory after an in-source build

Copy link
Member

@zbeekman zbeekman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, FWIW

@milancurcic
Copy link
Member Author

@certik Can this be merged? We can add the tests with manual Makefiles to CI in a separate PR.

@certik certik merged commit b2db7bc into fortran-lang:master Dec 30, 2019
@certik
Copy link
Member

certik commented Dec 30, 2019

I agree, let's merge this and improve upon it with further PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants