source: roaraudio/doc/Makefile @ 865:8bca13e93510

Last change on this file since 865:8bca13e93510 was 865:8bca13e93510, checked in by phi, 16 years ago

added Makefile targets prep-install-dirs, install, semi-install

File size: 819 bytes
Line 
1include ../Makefile.conf
2
3all: symlinks
4
5symlinks:
6        while read fn fc tn tc; do ln -s ../man$$tc/$$tn.$$tc man$$fc/$$fn.$$fc 2> /dev/null; done < symlinks.src; true
7
8symlinks-html: man2html
9        while read fn fc tn tc; do ln -s ../../html/man$$tc/$$tn.$$tc.html html/man$$fc/$$fn.$$fc.html 2> /dev/null; done < symlinks.src; true
10
11man2html:
12        sh -c 'for dir in man*; do (cd $$dir; mkdir ../html/$$dir 2>/dev/null; for file in *.?; do man2html -r $$file > ../html/$$dir/$$file.html; done); done'
13
14prep-install-dirs:
15        sh -c 'for dir in man*; do mkdir -p $(PREFIX_MAN)/$$dir; done'
16
17install: prep-install-dirs
18        sh -c 'for dir in man*; do cp $(cp_v) $$dir/*.?* $(PREFIX_MAN)/$$dir/; done'
19semi-install: prep-install-dirs
20        sh -c 'for dir in man*; do for file in $$dir/*.?*; do ln -s `pwd`/$$file $(PREFIX_MAN)/$$dir/; done; done'
Note: See TracBrowser for help on using the repository browser.