forked from lastpass/lastpass-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (25 loc) · 792 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
29
30
31
32
33
34
35
PREFIX ?= /usr
MANDIR ?= $(PREFIX)/share/man
BUILDDIR=build
CMAKEMAKE=$(BUILDDIR)/Makefile
CMAKEOPTS=-DCMAKE_INSTALL_PREFIX:PATH=$(PREFIX) -DCMAKE_INSTALL_MANDIR:PATH=$(MANDIR)
all: $(CMAKEMAKE)
$(MAKE) -C $(BUILDDIR) all
clean: $(CMAKEMAKE)
$(MAKE) -C $(BUILDDIR) clean
$(RM) -r $(BUILDDIR)
doc-man: $(CMAKEMAKE)
$(MAKE) -C $(BUILDDIR) doc-man
doc-html: $(CMAKEMAKE)
$(MAKE) -C $(BUILDDIR) doc-html
install-doc: $(CMAKEMAKE)
$(MAKE) -C $(BUILDDIR) install-doc
install: $(CMAKEMAKE)
$(MAKE) -C $(BUILDDIR) install
test: $(CMAKEMAKE)
$(MAKE) -C $(BUILDDIR) lpass-test && $(MAKE) -C $(BUILDDIR) test
uninstall: $(CMAKEMAKE)
$(MAKE) -C $(BUILDDIR) uninstall
$(CMAKEMAKE):
mkdir -p $(BUILDDIR) && cd $(BUILDDIR) && cmake $(CMAKEOPTS) ..
.PHONY: all doc-man clean $(CMAKEMAKE)