{"id":16333822,"url":"https://github.com/nmattia/makefile","last_synced_at":"2026-03-17T21:35:35.035Z","repository":{"id":56846622,"uuid":"53279063","full_name":"nmattia/makefile","owner":"nmattia","description":"Haskell Makefile parser","archived":false,"fork":false,"pushed_at":"2025-11-14T12:07:35.000Z","size":6665,"stargazers_count":14,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-02T12:35:18.443Z","etag":null,"topics":["haskell","library","makefile"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nmattia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-03-06T22:16:41.000Z","updated_at":"2025-11-14T12:07:38.000Z","dependencies_parsed_at":"2022-09-09T01:00:29.924Z","dependency_job_id":null,"html_url":"https://github.com/nmattia/makefile","commit_stats":null,"previous_names":["nmattia/mask"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nmattia/makefile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmattia%2Fmakefile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmattia%2Fmakefile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmattia%2Fmakefile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmattia%2Fmakefile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nmattia","download_url":"https://codeload.github.com/nmattia/makefile/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmattia%2Fmakefile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30632047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["haskell","library","makefile"],"created_at":"2024-10-10T23:36:40.725Z","updated_at":"2026-03-17T21:35:35.014Z","avatar_url":"https://github.com/nmattia.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CircleCI](https://circleci.com/gh/nmattia/makefile.svg?style=svg)](https://circleci.com/gh/nmattia/makefile)\n\n# Haskell Makefile Parser and Generator\n\nParse and generate `Makefile`s. The project is available on hackage\n[(latest)](http://hackage.haskell.org/package/makefile).\n\n# Example\n\n## Parsing\n\n``` Makefile\n\n# Define compiler\nCC:=gcc\n\n# Define lazy compiler\nLC=ghc\n\nall: hello\n\nhello: foo bar\n\t$(CC) baz.o\n```\n\nRunning `parseMakefile :: IO (Either String Makefile)` (pretty-printed for\nconvenience):\n\n``` haskell\nRight\n    ( Makefile\n        { entries =\n            [ Assignment SimpleAssign \"CC\" \"gcc\"\n            , Assignment RecursiveAssign \"LC\" \"ghc\"\n            , Rule\n                (Target \"all\")\n                [Dependency \"hello\"]\n                []\n            , Rule\n                (Target \"hello\")\n                [ Dependency \"foo\"\n                , Dependency \"bar\"\n                ]\n                [Command \"$(CC) baz.o\"]\n            ]\n        }\n    )\n```\n\n## Generating\n\n``` haskell\nmyMakefile :: Makefile\nmyMakefile =\n    Makefile\n        { entries =\n            [ Assignment SimpleAssign \"foo\" \"bar\"\n            , Rule (Target \"baz\") [Dependency \"qux\"] [Command \"rm -rf /\"]\n            ]\n        }\n```\n\nRunning `encodeMakefile :: Makefile -\u003e Text`:\n\n``` Makefile\nfoo:=bar\nbaz: qux\n\trm -rf /\n```\n\n\n# Release checklist\n\n\n1. Make sure you're on (latest) master.\n\n1. Bump the version in `makefile.cabal`: `0.MAJOR.MINOR.PATCH`.\n\n\u003e Given a version number MAJOR.MINOR.PATCH, increment the:\n\u003e\n\u003e MAJOR version when you make incompatible API changes,\n\u003e MINOR version when you add functionality in a backwards-compatible manner, and\n\u003e PATCH version when you make backwards-compatible bug fixes.\n\n1. Commit the updated `makefile.cabal` file with commit name `Release\n   v1.MAJOR.MINOR.PATCH`, as well as the updated documentation.\n1. Tag the commit with `git tag v1.MAJOR.MINOR.PATCH`.\n1. Run `stack upload --pvp-bounds both .` to upload `makefile` to `hackage`.\n1. Push with `git push --follow-tags`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmattia%2Fmakefile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnmattia%2Fmakefile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmattia%2Fmakefile/lists"}