X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile.am;h=add0e72a9886b02ea9d65c591745e9e78fa8a04d;hb=9af9e2e8cff919c6053d862703ac228ce1a15bdd;hp=f1de10f05f497cb39d43d802a6cb931c2991b6ab;hpb=8833d73dea713cc86d0bc94d3d02e663067f3f9e;p=sliver-openvswitch.git diff --git a/Makefile.am b/Makefile.am index f1de10f05..add0e72a9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,8 +1,14 @@ +# Copyright (C) 2007, 2008, 2009 Nicira Networks, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. This file is offered as-is, +# without warranty of any kind. + AUTOMAKE_OPTIONS = foreign subdir-objects ACLOCAL_AMFLAGS = -I m4 SUBDIRS = datapath -if ENABLE_USERSPACE AM_CPPFLAGS = $(SSL_CFLAGS) AM_CPPFLAGS += $(NCURSES_CFLAGS) AM_CPPFLAGS += $(PCRE_CFLAGS) @@ -20,9 +26,12 @@ endif CLEANFILES = DISTCLEANFILES = -EXTRA_DIST = INSTALL.Linux INSTALL.XenServer INSTALL.SSL -TESTS = -TESTS_ENVIRONMENT = +EXTRA_DIST = INSTALL.bridge \ + INSTALL.Linux \ + INSTALL.userspace \ + INSTALL.OpenFlow \ + INSTALL.SSL \ + INSTALL.XenServer bin_PROGRAMS = sbin_PROGRAMS = bin_SCRIPTS = @@ -43,14 +52,25 @@ ro_c = echo '/* -*- mode: c; buffer-read-only: t -*- */' SUFFIXES = .in .in: $(PERL) $(srcdir)/soexpand.pl -I$(srcdir) < $< | \ - sed -e 's,[@]LOGDIR[@],$(LOGDIR),g' \ + sed \ -e 's,[@]PKIDIR[@],$(PKIDIR),g' \ + -e 's,[@]LOGDIR[@],$(LOGDIR),g' \ + -e 's,[@]PERL[@],$(PERL),g' \ + -e 's,[@]PYTHON[@],$(PYTHON),g' \ -e 's,[@]RUNDIR[@],$(RUNDIR),g' \ + -e 's,[@]VERSION[@],$(VERSION),g' \ + -e 's,[@]localstatedir[@],$(localstatedir),g' \ -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \ - -e 's,[@]PERL[@],$(PERL),g' > $@ + -e 's,[@]sysconfdir[@],$(sysconfdir),g' \ + > $@.tmp + @if head -n 1 $@.tmp | grep -q '#!'; then \ + echo chmod +x $@.tmp; \ + chmod +x $@.tmp; \ + fi + mv $@.tmp $@ include lib/automake.mk -include secchan/automake.mk +include ofproto/automake.mk include utilities/automake.mk include tests/automake.mk include include/automake.mk @@ -58,9 +78,4 @@ include third-party/automake.mk include debian/automake.mk include vswitchd/automake.mk include xenserver/automake.mk -if HAVE_CURSES -if HAVE_PCRE include extras/ezio/automake.mk -endif -endif -endif # ENABLE_USERSPACE