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

Diff of /cdrkit/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 73 by blade, Thu Aug 24 13:58:48 2006 UTC revision 152 by blade, Thu Aug 31 09:17:37 2006 UTC
# Line 1  Line 1 
1    
2  all: builddir  ifneq ($(CFLAGS),)
3    EXTRA_CMAKE_FLAGS += -DCMAKE_C_FLAGS="$(CFLAGS)"
4    endif
5    
6    all: build/Makefile
7          $(MAKE) -C build $(MAKE_FLAGS) all          $(MAKE) -C build $(MAKE_FLAGS) all
8    
9  DISTNAME=botox-$(shell cat VERSION)  DISTNAME=cdrkit-$(shell cat VERSION)
10    
11  builddir:  build/Makefile:
12          -mkdir build 2>/dev/null          @-mkdir build 2>/dev/null
13          cd build && cmake ..          cd build && cmake .. $(EXTRA_CMAKE_FLAGS)
14    
15  cmakepurge:  cmakepurge:
16          rm -rf install_manifest.txt progress.make CMakeFiles CMakeCache.txt cmake_install.cmake */CMakeFiles */CMakeCache.txt */cmake_install.cmake */progress.make          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:  clean:
22          rm -rf build include/align.h  #       -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) $@          $(MAKE) -C build $(MAKE_FLAGS) $@
28    
29  release: distclean  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  #       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).tgz ; then echo ../$(DISTNAME).tgz exists, not overwritting ; exit 1; fi          @if test -f ../$(DISTNAME).tgz ; then echo ../$(DISTNAME).tgz exists, not overwritting ; exit 1; fi
37          mkdir tmp && svn export . tmp/$(DISTNAME) && cd tmp && tar -f - -c $(DISTNAME) | gzip -9 > ../../$(DISTNAME).tgz && cd .. && rm -rf tmp          mkdir tmp && svn export . tmp/$(DISTNAME) && cd tmp && tar -f - -c $(DISTNAME) | gzip -9 > ../../$(DISTNAME).tgz && cd .. && rm -rf tmp

Legend:
Removed from v.73  
changed lines
  Added in v.152

  ViewVC Help
Powered by ViewVC 1.1.5