Makefile.am
changeset 2117 96efb4fa0736
parent 2103 a979fcdda073
child 2234 7a1b33d7dc32
equal deleted inserted replaced
36:24eaeb3c619a 37:152dea397bc5
     1 ACLOCAL_AMFLAGS = -I m4
     1 ACLOCAL_AMFLAGS = -I m4
       
     2 
       
     3 AM_CPPFLAGS = -I$(top_srcdir)
       
     4 LDADD = $(top_builddir)/lemon/libemon.la
     2 
     5 
     3 EXTRA_DIST = \
     6 EXTRA_DIST = \
     4 	LICENSE \
     7 	LICENSE \
     5 	lemon.spec \
     8 	lemon.spec \
     6 	autopackage/default.apspec.in \
     9 	autopackage/default.apspec.in \
     7 	m4/lx_check_cplex.m4 \
    10 	m4/lx_check_cplex.m4 \
     8 	m4/lx_check_glpk.m4
    11 	m4/lx_check_glpk.m4
     9 
    12 
    10 if WANT_DOC
    13 pkgconfigdir = $(libdir)/pkgconfig
    11   MAYBE_DOC = doc
    14 lemondir = $(pkgincludedir)
    12 endif
    15 bitsdir = $(lemondir)/bits
    13 if WANT_DEMO
    16 conceptdir = $(lemondir)/concept
    14   MAYBE_DEMO = demo
    17 pkgconfig_DATA =
    15 endif
    18 lib_LTLIBRARIES =
    16 if WANT_BENCHMARK
    19 lemon_HEADERS =
    17   MAYBE_BENCHMARK = benchmark
    20 bits_HEADERS =
    18 endif
    21 concept_HEADERS =
       
    22 noinst_HEADERS =
       
    23 noinst_PROGRAMS =
       
    24 check_PROGRAMS =
       
    25 TESTS =
       
    26 XFAIL_TESTS =
    19 
    27 
    20 SUBDIRS = lemon $(MAYBE_BENCHMARK) $(MAYBE_DEMO) $(MAYBE_DOC) test
    28 include lemon/Makefile.am
       
    29 include test/Makefile.am
       
    30 include doc/Makefile.am
       
    31 include demo/Makefile.am
       
    32 include benchmark/Makefile.am
    21 
    33 
    22 MRPROPERFILES = \
    34 MRPROPERFILES = \
    23 	aclocal.m4 \
    35 	aclocal.m4 \
    24 	config.h.in \
    36 	config.h.in \
    25 	config.h.in~ \
    37 	config.h.in~ \
    37 	lemon/Makefile.in \
    49 	lemon/Makefile.in \
    38 	test/Makefile.in \
    50 	test/Makefile.in \
    39 	benchmark/Makefile.in \
    51 	benchmark/Makefile.in \
    40 	demo/Makefile.in
    52 	demo/Makefile.in
    41 
    53 
    42 doc-clean:
       
    43 	$(MAKE) -C doc $(AM_MAKEFLAGS) clean html
       
    44 
       
    45 doc:
       
    46 	-rm -f doc/html/index.html
       
    47 	$(MAKE) -C doc $(AM_MAKEFLAGS) html
       
    48 
       
    49 benchmark:
       
    50 	$(MAKE) -C benchmark $(AM_MAKEFLAGS)
       
    51 
       
    52 mrproper:
    54 mrproper:
    53 	$(MAKE) $(AM_MAKEFLAGS) maintainer-clean
    55 	$(MAKE) $(AM_MAKEFLAGS) maintainer-clean
    54 	-rm -f $(MRPROPERFILES)
    56 	-rm -f $(MRPROPERFILES)
    55 
    57 
    56 deb:
    58 deb:
    66 
    68 
    67 distcheck-bz2: distcheck
    69 distcheck-bz2: distcheck
    68 	zcat $(PACKAGE)-$(VERSION).tar.gz | \
    70 	zcat $(PACKAGE)-$(VERSION).tar.gz | \
    69 	bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
    71 	bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
    70 
    72 
    71 .PHONY: doc benchmark mrproper deb rpm dist-bz2 distcheck-bz2
    73 .PHONY: mrproper deb rpm dist-bz2 distcheck-bz2