diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-10-24 20:25:15 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-10-24 20:25:15 +0530 |
| commit | ff0daf7c5edb92e9e2361e9985996725bade9a85 (patch) | |
| tree | eea01a125f94bd1169e12ee55b0ff4df365ef92c /Makefile | |
| parent | cae48d231a82cd451658e3745ab23e1a2057d406 (diff) | |
| download | daffm-ff0daf7c5edb92e9e2361e9985996725bade9a85.tar.gz daffm-ff0daf7c5edb92e9e2361e9985996725bade9a85.zip | |
Add build/install setup + fix read error for move command
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..699b9dd --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +.POSIX: + +PREFIX = /usr/local + +all: build + +build: + cabal build + +dist: + mkdir -p daffm-build + make PREFIX=daffm-build install + cp -R LICENSE daffm-build + tar -cf - daffm-build | gzip > daffm.tar.gz + rm -rf daffm-build + +install: + cabal install -g -O2 --install-method=copy --overwrite-policy=always --installdir="$(PREFIX)/bin/" + install -Dm644 "./docs/daffm.1" "$(PREFIX)/share/man/man1/daffm.1" + +uninstall: + rm -f "$(PREFIX)/bin/daffm" + rm -f "$(PREFIX)/share/man/man1/daffm.1" + +# Generate markdown doc from manpage +doc: + pandoc -f man -t markdown docs/daffm.1 -o docs/daffm.md + +.PHONY: build install doc |
