https://github.com/zalky/make-clj
A reusable set of make tasks for building Clojure projects with io.zalky/build-clj
https://github.com/zalky/make-clj
Last synced: 3 months ago
JSON representation
A reusable set of make tasks for building Clojure projects with io.zalky/build-clj
- Host: GitHub
- URL: https://github.com/zalky/make-clj
- Owner: zalky
- License: apache-2.0
- Created: 2022-10-04T20:09:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-06T21:43:49.000Z (about 3 years ago)
- Last Synced: 2025-03-06T11:19:16.670Z (about 1 year ago)
- Language: Makefile
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Make-clj
A reusable set of make tasks for building Clojure projects with
[io.zalky/build-clj](https://github.com/zalky/build-clj).
First include this repo as a submodule in your project. Assuming you
added it at the path `make-clj`, then create a `Makefile` in your
project root that looks something like:
```make
# Required variables
version-number = 0.1.0
group-id = group.id
artifact-id = project
# Optional variables, can be ommitted
description = Optional project description
license = :apache|:mit|:epl-1|:epl-2
include make-clj/Makefile
```
You can then run your desired targets:
```
make jar
```
## Releases
The make tasks will append `-SNAPSHOT` to your artifact version by
default. To build a release, simply set `release = true` in your
`Makefile`, or set the `version` explicitly:
```make
include make-clj/Makefile
release = true
# or
version = $(version-number)-rc1
```
## Extending
You can easily extend the defined targets:
```make
include make-clj/Makefile
jar:
my-pre-scripts
make jar-super
my-post-scripts
```
## License
Distributed under the terms of the Apache License 2.0.