comparison Makefile @ 0:bafff9de2a76

Initial commit since summer'07
author Vlad Glagolev <enqlave@gmail.com>
date Sun, 20 Jan 2008 19:25:25 +0300
parents
children cd60300cae0b
comparison
equal deleted inserted replaced
-1:000000000000 0:bafff9de2a76
1 #
2 # Makefile (2007-05-17)
3 #
4 # -- CABAL -- primary build script
5 #
6 # Copyright (c) 2007 Vlad Glagolev <enqlave@gmail.com>
7 # All rights reserved.
8 #
9 # Permission to use, copy, modify, and distribute this software for any
10 # purpose with or without fee is hereby granted, provided that the above
11 # copyright notice and this permission notice appear in all copies.
12 #
13 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
14 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
15 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
16 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
18 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
19 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 #
21
22 VER=$$(grep VERSION sources/headers/cabal.h | cut -d \" -f 2)
23
24 all:
25 @cd sources && $(MAKE)
26
27 clean:
28 @cd sources && $(MAKE) clean
29 rm -f *.core *.pid *.tgz
30
31 dist:
32 @tar czf cabal-$(VER).tgz \
33 Makefile \
34 LICENSE \
35 README \
36 RFC1459 \
37 TODO \
38 sources/Makefile \
39 sources/*.cpp \
40 sources/headers/*.h && echo "Tarball cabal-$(VER).tgz ready"