diff options
| author | Tommaso Negri <me@tommasongr.com> | 2026-08-31 21:56:09 +0200 |
|---|---|---|
| committer | Tommaso Negri <me@tommasongr.com> | 2026-08-31 21:56:09 +0200 |
| commit | f8b59230794a6d1c22a48d06388a72b70bc6380f (patch) | |
| tree | 0d65005989d70e6810688da0c0a0f95dbfed7a28 /Makefile | |
| parent | 3615193ae44bf4afbc315e5e97d8f3d909e7c16b (diff) | |
| download | aria-f8b59230794a6d1c22a48d06388a72b70bc6380f.tar.gz aria-f8b59230794a6d1c22a48d06388a72b70bc6380f.zip | |
make the thing
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6335f0e --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +PREFIX ?= $(HOME)/.local + +.PHONY: build +build: .build/release/aria .build/plugins/GenerateManual/outputs/aria/aria.1 + +.build/release/aria: + swift build -c release + +.build/plugins/GenerateManual/outputs/aria/aria.1: + swift package generate-manual + +.PHONY: clean +clean: + @rm -rf .build + +.PHONY: install +install: build + @install -d $(PREFIX)/bin/ + @install -Dm755 .build/release/aria $(PREFIX)/bin/ + @install -d $(PREFIX)/share/man/man1/ + @install -Dm644 .build/plugins/GenerateManual/outputs/aria/aria.1 $(PREFIX)/share/man/man1/ + +.PHONY: uninstall +uninstall: + @rm -f $(PREFIX)/bin/aria + @rm -f $(PREFIX)/share/man/man1/aria.1 |
