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

Diff of /cdrkit/trunk/Makefile

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

nonameyet/trunk/GNUmakefile revision 20 by blade, Wed Aug 23 08:31:26 2006 UTC nonameyet/trunk/Makefile revision 137 by blade, Wed Aug 30 22:35:13 2006 UTC
# Line 1  Line 1 
1    
2  DISTNAME=talibus-$(shell cat VERSION)  ifneq ($(CFLAGS),)
3    EXTRA_CMAKE_FLAGS += -DCMAKE_C_FLAGS="$(CFLAGS)"
4    endif
5    
6  all: Makefile  all: build/Makefile
7          $(MAKE) -f Makefile $(MAKE_FLAGS) all          $(MAKE) -C build $(MAKE_FLAGS) all
8    
9  distclean: Makefile  DISTNAME=cdrkit-$(shell cat VERSION)
10          $(MAKE) -f Makefile $(MAKE_FLAGS) clean  
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 */CMakeFiles */CMakeCache.txt */cmake_install.cmake */progress.make          rm -rf install_manifest.txt progress.make CMakeFiles CMakeCache.txt cmake_install.cmake */CMakeFiles */CMakeCache.txt */cmake_install.cmake */progress.make
         rm -f Makefile include/align.h include/avoffset.h inc/align_test inc/avoffset  
17    
18  %: Makefile  clean:
19          $(MAKE) -f Makefile $(MAKE_FLAGS) $@  #       -cd build && make clean
20    #       rm -f include/xconfig.h include/align.h
21            rm -rf build
22    
23    %: build/Makefile
24            $(MAKE) -C build $(MAKE_FLAGS) $@
25    
26  release: distclean  release:
27  #       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
28          @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
29          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
30    
 Makefile:  
         cmake .  

Legend:
Removed from v.20  
changed lines
  Added in v.137

  ViewVC Help
Powered by ViewVC 1.1.5