/[debburn]/cdrkit/trunk/Makefile
ViewVC logotype

Contents of /cdrkit/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 314 - (show annotations) (download)
Fri Sep 15 14:35:58 2006 UTC (6 years, 9 months ago) by blade
Original Path: nonameyet/branches/cleanup/Makefile
File size: 1535 byte(s)
Merge with trunk (r313)
1
2 all: build/Makefile
3 ifneq ($(CFLAGS),)
4 cmake build -DCMAKE_C_FLAGS="$(CFLAGS)"
5 endif
6 $(MAKE) -C build $(MAKE_FLAGS) all
7
8 DISTNAME=cdrkit-$(shell cat VERSION)
9
10 build/Makefile:
11 @-mkdir build 2>/dev/null
12 cd build && cmake ..
13 ifneq ($(CFLAGS),)
14 cmake build -DCMAKE_C_FLAGS="$(CFLAGS)"
15 endif
16
17 cmakepurge:
18 rm -rf install_manifest.txt progress.make CMakeFiles CMakeCache.txt cmake_install.cmake
19 rm -rf */install_manifest.txt */progress.make */CMakeFiles */CMakeCache.txt */cmake_install.cmake
20 rm -rf */*/install_manifest.txt */*/progress.make */*/CMakeFiles */*/CMakeCache.txt */*/cmake_install.cmake
21 rm */Makefile */*/Makefile
22
23 clean:
24 # -cd build && make clean
25 # rm -f include/xconfig.h include/align.h
26 rm -rf build
27
28 %: build/Makefile
29 ifneq ($(CFLAGS),)
30 cmake build -DCMAKE_C_FLAGS="$(CFLAGS)"
31 endif
32 $(MAKE) -C build $(MAKE_FLAGS) $@
33
34 ifneq ($(PREFIX),)
35 install: build/Makefile
36 cd build && cmake .. -DCMAKE_INSTALL_PREFIX="$(PREFIX)" && $(MAKE) $(MAKE_FLAGS) install
37 endif
38
39 release:
40 # if test "$(shell svn status | grep -v -i make)" ; then echo Uncommited files found. Run \"svn status\" to display them. ; exit 1 ; fi
41 @if test -f ../$(DISTNAME).tar.gz ; then echo ../$(DISTNAME).tar.gz exists, not overwritting ; exit 1; fi
42 rm -rf tmp
43 mkdir tmp
44 svn export . tmp/$(DISTNAME)
45 rm -rf tmp/$(DISTNAME)/debian
46 tar -f - -c -C tmp $(DISTNAME) | gzip -9 > ../$(DISTNAME).tar.gz
47 rm -rf tmp
48 test -e /etc/debian_version && ln -f ../$(DISTNAME).tar.gz ../cdrkit_$(shell cat VERSION | sed -e "s,pre,~pre,").orig.tar.gz || true
49
50

  ViewVC Help
Powered by ViewVC 1.1.5