Makefile.am
author ladanyi
Wed, 21 Jun 2006 08:35:23 +0000
changeset 2103 a979fcdda073
parent 2056 8acf212a5ed4
child 2108 f2c532541730
permissions -rw-r--r--
Exclude the gui from the build.
     1 ACLOCAL_AMFLAGS = -I m4
     2 
     3 EXTRA_DIST = \
     4 	LICENSE \
     5 	lemon.spec \
     6 	autopackage/default.apspec.in \
     7 	m4/lx_check_cplex.m4 \
     8 	m4/lx_check_glpk.m4
     9 
    10 if WANT_DOC
    11   MAYBE_DOC = doc
    12 endif
    13 if WANT_DEMO
    14   MAYBE_DEMO = demo
    15 endif
    16 if WANT_BENCHMARK
    17   MAYBE_BENCHMARK = benchmark
    18 endif
    19 
    20 SUBDIRS = lemon $(MAYBE_BENCHMARK) $(MAYBE_DEMO) $(MAYBE_DOC) test
    21 
    22 MRPROPERFILES = \
    23 	aclocal.m4 \
    24 	config.h.in \
    25 	config.h.in~ \
    26 	configure \
    27 	Makefile.in \
    28 	build-aux/config.guess \
    29 	build-aux/config.sub \
    30 	build-aux/depcomp \
    31 	build-aux/install-sh \
    32 	build-aux/ltmain.sh \
    33 	build-aux/missing \
    34 	doc/Makefile.in \
    35 	doc/doxygen.log \
    36 	Makefile.in \
    37 	lemon/Makefile.in \
    38 	test/Makefile.in \
    39 	benchmark/Makefile.in \
    40 	demo/Makefile.in
    41 
    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:
    53 	$(MAKE) $(AM_MAKEFLAGS) maintainer-clean
    54 	-rm -f $(MRPROPERFILES)
    55 
    56 deb:
    57 	dpkg-buildpackage -rfakeroot
    58 
    59 rpm: dist
    60 	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
    61 	@rm -f $(PACKAGE)-$(VERSION).tar.gz
    62 
    63 dist-bz2: dist
    64 	zcat $(PACKAGE)-$(VERSION).tar.gz | \
    65 	bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
    66 
    67 distcheck-bz2: distcheck
    68 	zcat $(PACKAGE)-$(VERSION).tar.gz | \
    69 	bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
    70 
    71 .PHONY: doc benchmark mrproper deb rpm dist-bz2 distcheck-bz2