add license to distribution file
[lwes.git] / Makefile.am
blobd2540f9421401bcc950ad33a9341a6f7d9dc103c
1 # BEGIN: Variables to change.
3 # additional subdirs which automake should check (default is src and tests)
5 mysubdirs =
7 # additional files to add to a distribution
9 myextradist =
11 # any additional files to clean up with 'make clean'
13 mycleanfiles =
15 # additional files to remove when make maintainer-clean is called
17 mymaintainercleanfiles = doc
19 # END: Variables to change
20 # past here, hopefully, there is no need to edit anything
21 SUBDIRS = src ${mysubdirs} tests
23 pkgconfigdir = $(libdir)/pkgconfig
24 pkgconfig_DATA = @PACKAGE_NAME@-@MAJOR_VERSION@.pc
26 @PACKAGE_NAME@-@MAJOR_VERSION@.pc: pkgconfig-template.pc
27         ln -f pkgconfig-template.pc @PACKAGE_NAME@-@MAJOR_VERSION@.pc
29 EXTRA_DIST =                            \
30     LICENSE                             \
31     pkgconfig-template.pc.in            \
32     ${myextradist}
34 CLEANFILES =                            \
35     ${mycleanfiles}
37 MAINTAINERCLEANFILES =                  \
38     Makefile.in                         \
39     acinclude.m4                        \
40     aclocal.m4                          \
41     configure                           \
42     pkgconfig-template.pc               \
43     ${mymaintainercleanfiles}
45 maintainer-clean-local:
46         rm -f config.guess config.sub install-sh ltmain.sh \
47               missing mkinstalldirs depcomp INSTALL *.pc *.tar.gz \
48               .*.out
49         rm -rf autom4te.cache
50         if test -d doc; then rm -rf doc; fi
52 .PHONY: doxygen
53 doxygen:
54         @doc_out=`doxygen doxygen.config 2>&1`; \
55         doc_ret=$$? ; \
56         echo "$$doc_out" ; \
57         if test "x$$doc_ret" = "x1" ; then \
58           num=`echo "$$doc_out" | grep "No input read" | wc -l` ; \
59           if test $${num} -eq 0 ; then \
60             echo "error : doxygen reported an error" ; \
61             exit 1 ; \
62           fi ; \
63         fi ; \
64         mkdir -p doc/html ; \
65         if test ! -f "doc/html/index.html" ; then \
66             echo "<html><head><title>@PACKAGE_UNDERLINE@: Main Page</title></head><body><h1>No documentation for @PACKAGE_UNDERLINE@ yet, complain to @PACKAGE_BUGREPORT@</h1></body></html>" > doc/html/index.html ; \
67             fi
69 .PHONY: memcheck leakcheck
70 memcheck leakcheck:
71         cd tests/ && $(MAKE) $@
73 # .BEGIN is ignored by GNU make so we can use it as a guard
74 .BEGIN:
75         @echo "error: GNU Make is required, try aliasing gmake to make"
76         @exit 1