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

Contents of /nonameyet/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 207 - (show annotations) (download)
Mon Sep 4 16:40:52 2006 UTC (6 years, 9 months ago) by blade
File size: 1435 byte(s)
release target makes a hardlink to .orig.tar.gz automaticaly on Debian systems, and fixed the check-for-overwritting
1
2 ifneq ($(CFLAGS),)
3 EXTRA_CMAKE_FLAGS += -DCMAKE_C_FLAGS="$(CFLAGS)"
4 endif
5
6 all: build/Makefile
7 $(MAKE) -C build $(MAKE_FLAGS) all
8
9 DISTNAME=cdrkit-$(shell cat VERSION)
10
11 build/Makefile:
12 @-mkdir build 2>/dev/null
13 cd build && cmake .. $(EXTRA_CMAKE_FLAGS)
14
15 cmakepurge:
16 rm -rf install_manifest.txt progress.make CMakeFiles CMakeCache.txt cmake_install.cmake
17 rm -rf */install_manifest.txt */progress.make */CMakeFiles */CMakeCache.txt */cmake_install.cmake
18 rm -rf */*/install_manifest.txt */*/progress.make */*/CMakeFiles */*/CMakeCache.txt */*/cmake_install.cmake
19 rm */Makefile */*/Makefile
20
21 clean:
22 # -cd build && make clean
23 # rm -f include/xconfig.h include/align.h
24 rm -rf build
25
26 %: build/Makefile
27 $(MAKE) -C build $(MAKE_FLAGS) $@
28
29 ifneq ($(PREFIX),)
30 install: build/Makefile
31 cd build && cmake .. -DCMAKE_INSTALL_PREFIX="$(PREFIX)" && $(MAKE) $(MAKE_FLAGS) install
32 endif
33
34 release:
35 # if test "$(shell svn status | grep -v -i make)" ; then echo Uncommited files found. Run \"svn status\" to display them. ; exit 1 ; fi
36 @if test -f ../$(DISTNAME).tar.gz ; then echo ../$(DISTNAME).tar.gz exists, not overwritting ; exit 1; fi
37 mkdir tmp && svn export . tmp/$(DISTNAME) && cd tmp && rm -rf ./debian/ && tar -f - -c $(DISTNAME) | gzip -9 > ../../$(DISTNAME).tar.gz && cd .. && rm -rf tmp
38 -if test -e /etc/debian_version ; then ln -f ../$(DISTNAME).tar.gz ../cdrkit_$(shell cat VERSION | sed -e "s,pre,~pre,").orig.tar.gz ; fi
39

  ViewVC Help
Powered by ViewVC 1.1.5