blob: e25d8f4e237e3183d2866e61e76a73b9245a1188 (
plain)
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
42
43
44
45
46
|
# Copyright 2016 Luke Shumaker
# License: WTFPLv2
PACKAGE = httpconnectd
VERSION = 20161004
pkgconfdir = $(sysconfdir)/httpconnectd
Q = @
########################################################################
MAKEFLAGS += -r
topsrcdir ?= .
topoutdir ?= .
include $(topsrcdir)/build-aux/Makefile.head.mk
files.out.all += httpconnectd httpconnectd@.service # httpconnectd.socket
files.out.all += httpsconnectd httpsconnectd.service
files.out.int += *.sh
files.sys.all += $(bindir)/httpconnectd $(systemddir)/httpconnectd@.service $(systemddir)/httpconnectd.socket
files.sys.all += $(bindir)/httpsconnectd $(systemddir)/httpsconnectd.service $(pkgconfdir)/https.conf
files.sys.all += $(pkgconfdir)/basicauth.conf-sample
httpconnectd@.service: .var.bindir
httpconnectd.sh: .var.pkgconfdir
httpsconnectd.service: .var.bindir
httpsconnectd.sh: .var.pkgconfdir
%: %.sh
install -m755 $< $@
vars = $(patsubst .var.%,%,$(filter .var.%,$^))
%: %.in
$(if $(Q),$(Q)echo 'EDIT < $< > $@';)$(if $(vars),sed $(foreach v,$(vars), -e 's|@$(v)@|$($(v))|g' ),cat) < $< > $@
$(DESTDIR)$(bindir)/%: %
install -Dm755 $< $@
$(DESTDIR)$(systemddir)/%: %
install -Dm644 $< $@
$(DESTDIR)$(pkgconfdir)/%: %
install -Dm644 $< $@
.DELETE_ON_ERROR:
.SECONDARY:
include $(topsrcdir)/build-aux/Makefile.tail.mk
|