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

Rewrite Makefile #245

Merged
merged 9 commits into from
Oct 12, 2024
Merged

Rewrite Makefile #245

merged 9 commits into from
Oct 12, 2024

Conversation

cyqsimon
Copy link
Contributor

@cyqsimon cyqsimon commented Oct 7, 2024

Describe your changes

Rewrite Makefile to rely less on .PHONY targets.

While working on the logic problem in #242, I found the current Makefile setup to be quite clumsy. No offence to the previous author, but it seems to me that it's quite hastily cobbled together. Lots of unnecessary code duplication and under-utilisation of the strengths of make (specifically, its focus on file generation).

So I decided to overhaul the whole thing. A bit drastic, but I believe it's for a good cause.

Issue ticket number and link

Closes #242.

Checklist before requesting a review

  • I have performed a self-review of my code
  • If it is a core feature, I have added tests.
  • I have run make check and there are no failures.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • This change requires a documentation update

@cyqsimon
Copy link
Contributor Author

cyqsimon commented Oct 7, 2024

WIP:

  • Container stuff
  • GIF generation

But all the rest should be good. Try make build and make release.

Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@cyqsimon cyqsimon changed the title Rewrite Makefile (WIP) Rewrite Makefile Oct 7, 2024
- Binary generation done
- Release archive generation done
Makefile Outdated Show resolved Hide resolved
This is not intended to stay. Will refactor in a separate PR.
@cyqsimon cyqsimon marked this pull request as ready for review October 8, 2024 04:34
@pouriyajamshidi
Copy link
Owner

Hi @cyqsimon,

I will review this soon. Have been a bit busy past few days

Copy link
Owner

@pouriyajamshidi pouriyajamshidi left a comment

Choose a reason for hiding this comment

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

Makefile Show resolved Hide resolved
Makefile Show resolved Hide resolved
pouriyajamshidi and others added 2 commits October 11, 2024 21:55
Otherwise `pushd` and `popd` won't work.

Co-authored-by: Pouriya Jamshidi <[email protected]>
Makefile Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
Copy link
Owner

@pouriyajamshidi pouriyajamshidi left a comment

Choose a reason for hiding this comment

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

@cyqsimon Thank you for the professional job!!

@pouriyajamshidi pouriyajamshidi merged commit 8bd660e into pouriyajamshidi:master Oct 12, 2024
3 checks passed
@cyqsimon cyqsimon deleted the makefile branch October 12, 2024 13:31
@cyqsimon cyqsimon mentioned this pull request Oct 12, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request release
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Weirdness in Makefile causes difficulty when packaging for non-Debian distros
2 participants