Merge branch 'master' of mathias-kettner.de:omd
[omd.git] / packages / nail / Makefile
blob01a7597ac69c63c7bb77a45e7c037138d6f99d72
1 include ../../Makefile.omd
3 NAME = nail
4 VERSION = 12.5
5 DIR = heirloom-mailx-$(VERSION)
7 .PHONY: skel
9 build:
10 tar xzf $(DIR).tar.gz
11 set -e ; for p in patches/*.dif ; do \
12 echo "applying $$p..." ; \
13 ( cd $(DIR) ; patch -p1 -b ) < $$p ; \
14 done
15 cd $(DIR) && $(MAKE) -j 1
17 install:
18 mkdir -p $(DESTDIR)$(OMD_ROOT)/bin
19 install -m 755 $(DIR)/mailx $(DESTDIR)$(OMD_ROOT)/bin/nail
20 ln -sfn nail $(DESTDIR)$(OMD_ROOT)/bin/mail
21 mkdir -p $(DESTDIR)$(OMD_ROOT)/share/man/man1
22 install -m 644 $(DIR)/mailx.1 $(DESTDIR)$(OMD_ROOT)/share/man/man1/nail.1
23 gzip $(DESTDIR)$(OMD_ROOT)/share/man/man1/nail.1
25 skel:
27 clean:
28 rm -rf $(DIR)