2019-01-31 12:43:09 +00:00
|
|
|
include ../defines.mk
|
|
|
|
|
|
|
|
UNITS := \
|
2020-02-06 21:08:07 +00:00
|
|
|
pbsbanner.service \
|
|
|
|
|
|
|
|
DYNAMIC_UNITS := \
|
2019-01-31 12:43:09 +00:00
|
|
|
proxmox-backup.service \
|
|
|
|
proxmox-backup-proxy.service
|
|
|
|
|
2020-02-06 21:08:07 +00:00
|
|
|
all: $(UNITS) $(DYNAMIC_UNITS)
|
2019-01-31 12:43:09 +00:00
|
|
|
|
|
|
|
clean:
|
2020-02-06 21:08:07 +00:00
|
|
|
rm -f $(DYNAMIC_UNITS)
|
2019-01-31 12:43:09 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .service.in .service
|
|
|
|
.service.in.service:
|
|
|
|
sed \
|
2019-02-01 09:05:14 +00:00
|
|
|
-e 's!%LIBEXECDIR%!$(LIBEXECDIR)!g' \
|
2019-01-31 12:43:09 +00:00
|
|
|
-e 's!%PROXY_USER%!$(PROXY_USER)!g' \
|
|
|
|
$< >$@.tmp
|
|
|
|
mv $@.tmp $@
|