Home | History | Annotate | Download | only in libdaemon
      1 # This file is part of libdaemon.
      2 #
      3 # Copyright 2003-2008 Lennart Poettering
      4 #
      5 # Permission is hereby granted, free of charge, to any person obtaining a copy
      6 # of this software and associated documentation files (the "Software"), to deal
      7 # in the Software without restriction, including without limitation the rights
      8 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
      9 # copies of the Software, and to permit persons to whom the Software is
     10 # furnished to do so, subject to the following conditions:
     11 #
     12 # The above copyright notice and this permission notice shall be included in
     13 # all copies or substantial portions of the Software.
     14 #
     15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     16 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     17 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     18 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     19 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     20 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
     21 # SOFTWARE.
     22 
     23 ACLOCAL_AMFLAGS = -I m4
     24 
     25 EXTRA_DIST=bootstrap.sh LICENSE
     26 SUBDIRS=libdaemon doc
     27 
     28 if EXAMPLES
     29 SUBDIRS += examples
     30 endif
     31 
     32 pkgconfigdir = $(libdir)/pkgconfig
     33 pkgconfig_DATA = pkgconfig/libdaemon.pc
     34 
     35 dist_noinst_DATA =
     36 MAINTAINERCLEANFILES=
     37 
     38 if USE_LYNX
     39 dist_noinst_DATA += README
     40 MAINTAINERCLEANFILES += README
     41 
     42 README:
     43 	rm -f README
     44 	$(MAKE) -C doc README
     45 	ln -s doc/README README
     46 endif
     47 
     48 doxygen:
     49 	$(MAKE) -C doc doxygen
     50 
     51 homepage: dist doxygen
     52 	test -d $$HOME/homepage/private
     53 	mkdir -p $$HOME/homepage/private/projects/libdaemon
     54 	cp libdaemon-@PACKAGE_VERSION (a] .tar.gz $$HOME/homepage/private/projects/libdaemon
     55 	cp doc/README.html doc/style.css $$HOME/homepage/private/projects/libdaemon
     56 	ln -sf README.html $$HOME/homepage/private/projects/libdaemon/index.html
     57 	cp -av doc/reference/ $$HOME/homepage/private/projects/libdaemon/
     58 
     59 .PHONY: homepage doxygen
     60