summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 231fdca9bf8cf5ffe0241197915e636351f6bd76 (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
cfgdir = $(datadir)/vyatta-cfg/templates
opdir = $(datadir)/vyatta-op/templates
xsldir = $(datadir)/xsl
share_perl5dir = $(datadir)/perl5
bin_sudo_usersdir = $(bindir)/sudo-users
curverdir = $(sysconfdir)/config-migrate/current

sbin_SCRIPTS = scripts/vyatta-update-nat.pl
bin_sudo_users_SCRIPTS = scripts/vyatta-show-nat.pl
bin_sudo_users_SCRIPTS += scripts/vyatta-clear-nat

share_perl5_DATA = scripts/VyattaNatRule.pm
curver_DATA = cfg-version/nat@2

cpiop = find  . ! -regex '\(.*~\|.*\.bak\|.*\.swp\|.*\#.*\#\)' -print0 | \
	cpio -0pd

install-exec-hook:
	mkdir -p $(DESTDIR)$(cfgdir)
	cd templates-cfg; $(cpiop) $(DESTDIR)$(cfgdir)
	mkdir -p $(DESTDIR)$(opdir)
	cd templates-op; $(cpiop) $(DESTDIR)$(opdir)
	mkdir -p $(DESTDIR)$(xsldir)
	cd xsl; $(cpiop) $(DESTDIR)$(xsldir)