-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (36 loc) · 821 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
36
37
38
39
40
41
SHELL := /bin/bash
MAKEFLAGS=--warn-undefined-variables
PROJECT := acme-wrapper
VERSION := $(shell dpkg-parsechangelog --show-field Version)
all:
install:
install --verbose \
--directory \
$(DESTDIR)/usr/bin/ \
$(DESTDIR)/usr/lib/acme-wrapper/ \
$(DESTDIR)/etc/acme-wrapper/ \
#
install --verbose \
--target-directory=$(DESTDIR)/usr/bin/ \
src/acme-wrapper \
#
install --verbose \
--target-directory=$(DESTDIR)/etc/acme-wrapper/ \
--mode=0644 \
src/acme-wrapper.conf \
src/domains.list \
#
install --verbose \
--target-directory=$(DESTDIR)/usr/lib/acme-wrapper/ \
--mode=0644 \
src/openssl.cnf \
#
.PHONY: test
test:
PROJECT=$(PROJECT) \
VERSION=$(VERSION) \
$(MAKE) \
-C test \
test
clean:
$(MAKE) -C test clean