Debian Codegraph @

initsystems/upstart/Makefile

raw symbols SCIP
1 ifndef top_srcdir
2 include ../../mk/dirs.mk
3 endif
4
5 LIBRESWANSRCDIR?=$(shell cd ../..; pwd)
6 SRCDIR?=${LIBRESWANSRCDIR}/initsystems/systemd/
7
8 UPSTARTFILE=$(builddir)/ipsec.conf
9 DEFAULTFILE=$(builddir)/default.pluto
10 SUBDIRS=
11 UPSTARTDIR=$(DESTDIR)$(SYSCONFDIR)/init
12 DEFAULTDIR=$(DESTDIR)$(SYSCONFDIR)/default
13
14 include $(top_srcdir)/mk/config.mk
15
16 # Use dependencies to force the order.
17 #
18 # (Without this, since local-install-base depends local-base, rules
19 # like local-base and installinitfiles and checkenabled are allowed to
20 # run in parallel)
21
22 local-base: $(UPSTARTFILE) $(DEFAULTFILE)
23 local-install-base: installupstartconf installdefault
24
25 installupstartconf: local-base
26 @mkdir -p $(UPSTARTDIR)
27 $(INSTALL) $(UPSTARTFILE) $(UPSTARTDIR);
28
29 installdefault: local-base
30 mkdir -p $(DEFAULTDIR)
31 if test ! -f $(DEFAULTDIR)/pluto ; then \
32 $(INSTALL) $(DEFAULTFILE) $(DEFAULTDIR)/pluto ; \
33 fi
34
35 include ${top_srcdir}/mk/targets.mk
36 include ${top_srcdir}/mk/rules.mk