source: tags/ms_r16q3/lib/Makefile

Last change on this file was 7409, checked in by westram, 14 years ago

merged from dev [7358] [7359] [7360] [7363] [7364] [7365] [7367]

  • tweaked build process
    • get rid of '.depends: No such file or directory'
    • make clean now is much more scrupulous! removal notably includes lib/pts, lib/nas and lib/arb_tcp.dat (when they are no symlinks)
    • suppress some output
    • added several unreached targets (to test random failures)
    • fine-grained tools-dependencies
    • automatically generate target directories (GENC …)
    • removed duplicated target 'mbin' (same as 'comtools')
    • added target 'setup_after_clean' (use after 'clean' when doing a partial build)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 984 bytes
Line 
1help.make:
2        @echo   'options'
3        @echo   '       nameserver              create nameserver from template'
4        @echo   '       tcpdat                  create arb_tcp.dat from template'
5        @echo   ''
6        @echo   '   all             all above'
7        @echo   '   clean           cleanup'
8
9all: tcpdat nameserver
10
11# ----------------------------------------
12# READ THIS!
13#
14# Please be very careful here to NOT
15# touch the following files/directories if
16# they are links:
17#
18#       ./arb_tcp.dat
19#       ./nas
20#       ./pts
21#
22# ----------------------------------------
23
24tcpdat:
25        (       (test -e arb_tcp.dat || test -h arb_tcp.dat) \
26                && echo "lib/arb_tcp.dat is a link - skipped" ) \
27                || cp -p arb_tcp_org.dat arb_tcp.dat
28
29nameserver:
30        ( test -h nas && echo "lib/nas is a link - skipped" ) || (cd nas;$(MAKE) all)
31
32clean:
33        rm -f *.so
34        ( test -h nas && echo "lib/nas is a link - skipped" ) || (cd nas;$(MAKE) clean)
35        ( test -h pts && echo "lib/pts is a link - skipped" ) || rm -rf pts
36        ( test -h arb_tcp.dat && echo "lib/arb_tcp.dat is a link - skipped" ) || rm -f arb_tcp.dat
Note: See TracBrowser for help on using the repository browser.