root/trunk/wifidog/doc/Makefile.am @ 10

Revision 10, 1.3 KB (checked in by benoitg, 9 years ago)

2004-03-08 Benoit Gr�goire <bock@…>

  • Initial CVS import. Integrate a standrad GNU build system and Doxygen to the build process. Add Doxygen and CVS headers, .cvsignores, etc. Note that the imported code is Philippe April (papril777 at yahoo.com)'s work. Tell me if I forgot anything. Please note that the paths in the src/fw* scripts are still hardcoded. Don't forget to update the ChangeLog file every commit and add doxygen comments to your code. Happy hacking.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1SUBDIRS =
2
3docdir = ${prefix}/share/doc/wifidog-@VERSION@
4
5EXTRA_DIST = \
6        doxygen.cfg \
7        doxygen.cfg.in \
8        README.developers.txt
9
10all:
11
12doc: doxygen.cfg
13        echo "doc: " && pwd &&  echo "distdir: " && echo $(distdir)
14        rm -rf html/ refman.pdf
15        $(DOXYGEN) doxygen.cfg
16#       $(MAKE) -C latex/
17#       mv latex/refman.pdf ./refman.pdf
18
19dist-hook: doxygen.cfg
20        echo "dist-hook: " && pwd
21        cd $(srcdir) && pwd && rm -rf html refman.pdf && $(DOXYGEN) doxygen.cfg
22        cp -rp html ${distdir}
23
24clean-local:
25        echo "clean-local: " && pwd
26        rm -rf latex/
27        rm -f *~
28        rm -f doxygen.log
29        rm -f doxygen.cfg
30
31maintainer-clean-local: clean-local
32        echo "maintainer-clean-local: " && pwd
33        rm -rf html refman.pdf
34
35install-data-hook:
36        $(mkinstalldirs) $(DESTDIR)$(docdir)
37        mkdir -p html #Workaround to allow libofx-cvs user to install without doc.
38        cp -rp html $(DESTDIR)$(docdir)
39
40uninstall-hook:
41        chmod +w -R $(DESTDIR)${docdir}/html #Why chmod is needed is a mystery
42        rm -rf $(DESTDIR)${docdir}/html
43
44## We borrow guile's convention and use @-...-@ as the substitution
45## brackets here, instead of the usual @...@.  This prevents autoconf
46## from substituting the values directly into the left-hand sides of
47## the sed substitutions.
48doxygen.cfg: doxygen.cfg.in Makefile
49        rm -f $@.tmp
50        sed < $< > $@.tmp \
51            -e 's:@-top_srcdir-@:${top_srcdir}:g'
52        mv $@.tmp $@
Note: See TracBrowser for help on using the browser.