forked from vyos-legacy/vyatta-vrrp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
29 lines (22 loc) · 826 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
cfgdir = $(datadir)/vyatta-cfg/templates
opdir = $(datadir)/vyatta-op/templates
bin_sudo_usersdir = $(bindir)/sudo-users
share_perl5dir = $(datadir)/perl5
gentmpdir = generated-templates
sbin_SCRIPTS = scripts/vyatta-keepalived.pl
sbin_SCRIPTS += scripts/vyatta-vrrp-state.pl
bin_sudo_users_SCRIPTS = scripts/vyatta-show-vrrp.pl
bin_sudo_users_SCRIPTS += scripts/vyatta-clear-vrrp.pl
cpiop = find . ! -regex '\(.*~\|.*\.bak\|.*\.swp\|.*\#.*\#\)' -print0 | \
cpio -0pd
all-local:
./gen-interface-templates.pl $(gentmpdir)
clean-local:
rm -rf $(gentmpdir)
install-exec-hook:
mkdir -p $(DESTDIR)$(cfgdir)
cd $(gentmpdir); $(cpiop) $(DESTDIR)$(cfgdir)
mkdir -p $(DESTDIR)$(opdir)
cd templates-op; $(cpiop) $(DESTDIR)$(opdir)
mkdir -p $(DESTDIR)$(share_perl5dir)
cd lib; $(cpiop) $(DESTDIR)$(share_perl5dir)