Files
nixpkgs/pkgs/by-name/ma/mailcheck/mailcheck-Makefile.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

23 lines
604 B
Diff

diff -u a/Makefile b/Makefile
--- a/Makefile 2015-04-05 19:31:41.871227295 +0100
+++ b/Makefile 2015-04-05 19:42:49.743517508 +0100
@@ -1,3 +1,5 @@
+prefix=$(out)
+
all: mailcheck
debug: mailcheck.c netrc.c netrc.h socket.c
@@ -7,8 +9,10 @@
$(CC) -Wall -O2 mailcheck.c netrc.c socket.c -s -o mailcheck
install: mailcheck
- install mailcheck $(prefix)/usr/bin
- install -m 644 mailcheckrc $(prefix)/etc
+ [ -d $(prefix)/bin ] || mkdir $(prefix)/bin
+ [ -d $(prefix)/etc ] || mkdir $(prefix)/etc
+ install mailcheck $(prefix)/bin/
+ install -m 644 mailcheckrc $(prefix)/etc/
distclean: clean