Makefile.am
author Akos Ladanyi <ladanyi@tmit.bme.hu>
Fri, 29 May 2009 12:44:37 +0100
changeset 681 9c7639f3a741
parent 559 3314f58e7b25
child 699 71f9c1f0d808
permissions -rw-r--r--
Minor CMake improvements

* Use the empty ELSE(), ENDIF(), ENDMACRO(), etc. syntax since this improves
readability and requires less typing.
* Use FIND_PACKAGE() instead of INCLUDE().
* Use the value of CMAKE_COMMAND variable instead of cmake, since this works
even if cmake is not in the PATH.
     1 ACLOCAL_AMFLAGS = -I m4
     2 
     3 AM_CXXFLAGS = $(WARNINGCXXFLAGS)
     4 
     5 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir)
     6 LDADD = $(top_builddir)/lemon/libemon.la
     7 
     8 EXTRA_DIST = \
     9 	AUTHORS \
    10 	LICENSE \
    11 	m4/lx_check_cplex.m4 \
    12 	m4/lx_check_glpk.m4 \
    13 	m4/lx_check_soplex.m4 \
    14 	m4/lx_check_coin.m4 \
    15 	CMakeLists.txt \
    16 	cmake/FindGhostscript.cmake \
    17 	cmake/FindCPLEX.cmake \
    18 	cmake/FindGLPK.cmake \
    19 	cmake/FindCOIN.cmake \
    20 	cmake/version.cmake.in \
    21 	cmake/version.cmake \
    22 	cmake/nsis/lemon.ico \
    23 	cmake/nsis/uninstall.ico
    24 
    25 pkgconfigdir = $(libdir)/pkgconfig
    26 lemondir = $(pkgincludedir)
    27 bitsdir = $(lemondir)/bits
    28 conceptdir = $(lemondir)/concepts
    29 pkgconfig_DATA =
    30 lib_LTLIBRARIES =
    31 lemon_HEADERS =
    32 bits_HEADERS =
    33 concept_HEADERS =
    34 noinst_HEADERS =
    35 noinst_PROGRAMS =
    36 bin_PROGRAMS =
    37 check_PROGRAMS =
    38 dist_bin_SCRIPTS =
    39 TESTS =
    40 XFAIL_TESTS =
    41 
    42 include lemon/Makefile.am
    43 include test/Makefile.am
    44 include doc/Makefile.am
    45 include tools/Makefile.am
    46 
    47 DIST_SUBDIRS = demo
    48 
    49 demo:
    50 	$(MAKE) $(AM_MAKEFLAGS) -C demo
    51 
    52 MRPROPERFILES = \
    53 	aclocal.m4 \
    54 	config.h.in \
    55 	config.h.in~ \
    56 	configure \
    57 	Makefile.in \
    58 	build-aux/config.guess \
    59 	build-aux/config.sub \
    60 	build-aux/depcomp \
    61 	build-aux/install-sh \
    62 	build-aux/ltmain.sh \
    63 	build-aux/missing \
    64 	doc/doxygen.log
    65 
    66 mrproper:
    67 	$(MAKE) $(AM_MAKEFLAGS) maintainer-clean
    68 	-rm -f $(MRPROPERFILES)
    69 
    70 dist-bz2: dist
    71 	zcat $(PACKAGE)-$(VERSION).tar.gz | \
    72 	bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
    73 
    74 distcheck-bz2: distcheck
    75 	zcat $(PACKAGE)-$(VERSION).tar.gz | \
    76 	bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
    77 
    78 .PHONY: demo mrproper dist-bz2 distcheck-bz2