summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-09-25 15:55:26 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2007-09-25 15:55:26 -0700
commite9a79a249cec69fc178098d2f75db9389068510a (patch)
tree0e366094b7fecd3988c243fbbb574015e0c900c8 /Makefile.am
downloadvyatta-cfg-e9a79a249cec69fc178098d2f75db9389068510a.tar.gz
vyatta-cfg-e9a79a249cec69fc178098d2f75db9389068510a.zip
initial import (from eureka /cli) plus new build system.upstream
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am53
1 files changed, 53 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..3ff591d
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,53 @@
+cfgdir = $(datadir)/vyatta-cfg/templates
+share_perl5dir = /opt/vyatta/share/perl5
+completiondir = /etc/bash_completion.d
+
+AM_CFLAGS = -I src -Wall
+AM_YFLAGS = -d --name-prefix=yy_`basename $* .y`_
+AM_LFLAGS = --prefix=yy_`basename $* .l`_ -olex.yy.c
+
+completion_DATA = etc/bash_completion.d/vyatta-cfg
+
+lib_LTLIBRARIES = src/libvyatta-cfg.la
+src_libvyatta_cfg_la_LDFLAGS = -version-info 1:0:0
+src_libvyatta_cfg_la_SOURCES = src/cli_parse.y src/cli_def.l src/cli_val.l \
+ src/cli_new.c src/cli_path_utils.c \
+ src/cli_val_engine.c src/cli_objects.c
+CLEANFILES = src/cli_parse.c src/cli_parse.h src/cli_def.c src/cli_val.c
+LDADD = src/libvyatta-cfg.la
+
+sbin_PROGRAMS = src/my_commit
+sbin_PROGRAMS += src/my_delete
+sbin_PROGRAMS += src/my_set
+sbin_PROGRAMS += tools/rl_passwd
+src_my_commit_SOURCES = src/commit.c
+src_my_delete_SOURCES = src/delete.c
+src_my_set_SOURCES = src/set.c
+tools_rl_passwd_SOURCES = tools/rl_passwd.cc
+
+sbin_SCRIPTS = scripts/xorp_tmpl_tool
+sbin_SCRIPTS += scripts/vyatta-validate-type.pl
+sbin_SCRIPTS += scripts/vyatta-find-type.pl
+sbin_SCRIPTS += scripts/system/vyatta_update_login_user.pl
+sbin_SCRIPTS += scripts/system/vyatta_update_logrotate.pl
+sbin_SCRIPTS += scripts/system/vyatta_update_syslog.pl
+sbin_SCRIPTS += scripts/vyatta-config-loader.pl
+sbin_SCRIPTS += scripts/vyatta-cli-expand-var.pl
+sbin_SCRIPTS += scripts/vyatta-output-config.pl
+sbin_SCRIPTS += scripts/vyatta-save-config.pl
+sbin_SCRIPTS += scripts/vyatta-load-config.pl
+
+share_perl5_DATA = scripts/XorpConfigParser.pm
+share_perl5_DATA += scripts/VyattaConfig.pm
+share_perl5_DATA += scripts/VyattaConfigDOMTree.pm
+share_perl5_DATA += scripts/VyattaConfigOutput.pm
+share_perl5_DATA += scripts/VyattaConfigLoad.pm
+share_perl5_DATA += scripts/VyattaMisc.pm
+share_perl5_DATA += scripts/VyattaTypeChecker.pm
+
+cpiop = find . ! -regex '\(.*~\|.*\.bak\|.*\.swp\|.*\#.*\#\)' -print0 | \
+ cpio -0pd
+
+install-exec-hook:
+ mkdir -p $(DESTDIR)$(cfgdir)
+ cd templates; $(cpiop) $(DESTDIR)$(cfgdir)