blob: ad58c3aae50f3ab38a355918210e3d9bb9dddad2 [file] [log] [blame]
Andrew Morgan2c9c0532007-07-10 20:50:21 -07001#
Andrew Morgan2c9c0532007-07-10 20:50:21 -07002# Makefile for libcap
Andrew Morgancd45c572007-08-13 23:16:50 -07003#
Andrew Morgan2c9c0532007-07-10 20:50:21 -07004topdir=$(shell pwd)
5include Make.Rules
6
7#
8# flags
9#
10
Andrew G. Morgandce069b2016-02-06 19:42:27 -080011all install clean kdebug: %: %-here
Andrew G. Morgan953e7f12008-06-02 22:02:01 -070012 $(MAKE) -C libcap $@
Andrew G. Morgane64aa182008-01-17 19:31:45 -080013ifneq ($(PAM_CAP),no)
Andrew G. Morgan953e7f12008-06-02 22:02:01 -070014 $(MAKE) -C pam_cap $@
Andrew G. Morgane64aa182008-01-17 19:31:45 -080015endif
Andrew G. Morgan953e7f12008-06-02 22:02:01 -070016 $(MAKE) -C progs $@
17 $(MAKE) -C doc $@
Andrew G. Morgandce069b2016-02-06 19:42:27 -080018 $(MAKE) -C kdebug $@
Andrew Morgan2c9c0532007-07-10 20:50:21 -070019
20all-here:
21
22install-here:
23
24clean-here:
25 $(LOCALCLEAN)
26
27distclean: clean
28 $(DISTCLEAN)
29
30release: distclean
Andrew G Morgan762008b2013-12-27 10:19:22 -080031 cd .. && ln -s libcap libcap-$(VERSION).$(MINOR) && tar cvf libcap-$(VERSION).$(MINOR).tar libcap-$(VERSION).$(MINOR)/* && rm libcap-$(VERSION).$(MINOR)
32 cd .. && gpg -sba -u E2CCF3F4 libcap-$(VERSION).$(MINOR).tar
Andrew G. Morgana613b002011-07-24 19:24:16 -070033
34tagrelease: distclean
Andrew G Morgan3a788dd2013-12-27 10:04:50 -080035 @echo "sign the tag twice: older DSA key; and newer RSA kernel.org key"
36 git tag -u D41A6DF2 -s libcap-$(VERSION).$(MINOR)
37 git tag -u E2CCF3F4 -s libcap-korg-$(VERSION).$(MINOR)
Andrew G. Morgana613b002011-07-24 19:24:16 -070038 make release