-
-
Notifications
You must be signed in to change notification settings - Fork 104
/
Makefile.am
29 lines (23 loc) · 581 Bytes
/
Makefile.am
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
if HAVE_SYSTEMD
EXTRA_DIST = \
pcscd.service.in \
pcscd.socket.in
systemdsystemunit_DATA = \
pcscd.service \
pcscd.socket
CLEANFILES = $(systemdsystemunit_DATA)
edit = sed \
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
-e 's|@sbindir_exp[@]|$(sbindir_exp)|g' \
-e 's|@ipcdir[@]|$(ipcdir)|g'
$(systemdsystemunit_DATA): Makefile
rm -f $@ [email protected]
srcdir=''; \
test -f ./[email protected] || srcdir=$(srcdir)/; \
$(edit) $${srcdir}[email protected] >[email protected]
chmod +x [email protected]
chmod a-w [email protected]
mv [email protected] $@
pcscd.service: $(srcdir)/pcscd.service.in
pcscd.socket: $(srcdir)/pcscd.socket.in
endif