forked from arpa2/tlspool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (21 loc) · 910 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
DESTDIR ?=
PREFIX ?= /usr/local/
BUILDDIRS=src lib tool pulleyback doc test
.PHONEY: all install clean distclean
all:
@$(foreach dir,$(BUILDDIRS),$(MAKE) DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) -C '$(dir)' all && ) echo Built all
@echo '#'
@echo '# NOTE: You may need to "make testdata" for some tool/* programs'
@echo '#'
install: all
@$(foreach dir,$(BUILDDIRS),$(MAKE) DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) -C '$(dir)' install && ) echo Installed
uninstall:
@$(foreach dir,$(BUILDDIRS),$(MAKE) DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) -C '$(dir)' uninstall && ) echo Uninstalled
clean:
@$(foreach dir,$(BUILDDIRS),$(MAKE) DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) -C '$(dir)' clean && ) echo Cleaned
@echo '#'
@echo '# NOTE: Kept key material, use "make distclean" if you REALLY want to clean it'
@echo '#'
anew: clean all
distclean: clean
$(MAKE) -C testdata clean-pkcs11 clean-cert clean-pgp clean-db