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