]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/ofed/management/opensm/Makefile.am
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / ofed / management / opensm / Makefile.am
1
2 # note that order matters: make the libs first then use them
3 SUBDIRS = complib libvendor opensm osmtest include $(DEFAULT_EVENT_PLUGIN)
4 DIST_SUBDIRS = complib libvendor opensm osmtest include osmeventplugin
5
6 ACLOCAL_AMFLAGS = -I config
7
8 # we should provide a hint for other apps about the build mode of this project
9 install-exec-hook:
10         mkdir -p $(DESTDIR)/$(includedir)
11 if DEBUG
12         echo "define osm_build_type \"debug\"" > $(DESTDIR)/$(includedir)/infiniband/opensm/osm_build_id.h
13 else
14         echo "define osm_build_type \"free\"" > $(DESTDIR)/$(includedir)/infiniband/opensm/osm_build_id.h
15 endif
16         $(top_srcdir)/config/install-sh -m 755 -d $(DESTDIR)/$(sysconfdir)/init.d
17         cp $(top_builddir)/scripts/opensm.init $(DESTDIR)/$(sysconfdir)/init.d/opensmd
18         chmod 755 $(DESTDIR)/$(sysconfdir)/init.d/opensmd
19
20
21 man_MANS = man/opensm.8 man/osmtest.8
22
23 various_scripts = $(wildcard scripts/*)
24 docs = doc/performance-manager-HOWTO.txt doc/QoS_management_in_OpenSM.txt \
25         doc/opensm_release_notes-3.2.txt
26
27 EXTRA_DIST = autogen.sh opensm.spec $(various_scripts) $(man_MANS) $(docs)
28
29 dist-hook: $(EXTRA_DIST)
30         if [ -x $(top_srcdir)/../gen_chlog.sh ] ; then \
31                 cd $(top_srcdir)/.. ; ./gen_chlog.sh $(PACKAGE) > $(distdir)/ChangeLog ; cd - ; \
32         fi