2 CMAKETWEAKS += ( cd build ; cmake .. -DCMAKE_C_FLAGS="$(CFLAGS)" ) || exit 1;
6 CMAKETWEAKS += (cd build ; cmake .. -DCMAKE_EXE_LINKER_FLAGS:STRING="$(LDFLAGS)" -DCMAKE_MODULE_LINKER_FLAGS:STRING="$(LDFLAGS)" -DCMAKE_SHARED_LINKER_FLAGS:STRING="$(LDFLAGS)" ) || exit 1;
10 CMAKETWEAKS += ( cd build ; cmake .. -DCMAKE_INSTALL_PREFIX="$(PREFIX)") || exit 1;
14 CMAKETWEAKS += ( cd build ; cmake .. -DMANSUBDIR="$(MANSUBDIR)" ) || exit 1;
19 DISTNAME=cdrkit-$(shell cat VERSION)
20 DEBSRCNAME=cdrkit_$(shell cat VERSION | sed -e "s,pre,~pre,").orig.tar.gz
23 @-mkdir build 2>/dev/null
27 rm -rf install_manifest.txt progress.make CMakeFiles CMakeCache.txt cmake_install.cmake
28 rm -rf */install_manifest.txt */progress.make */CMakeFiles */CMakeCache.txt */cmake_install.cmake
29 rm -rf */*/install_manifest.txt */*/progress.make */*/CMakeFiles */*/CMakeCache.txt */*/cmake_install.cmake
30 rm */Makefile */*/Makefile
36 # if test "$(shell svn status | grep -v -i make)" ; then echo Uncommited files found. Run \"svn status\" to display them. ; exit 1 ; fi
37 @if test -f ../$(DISTNAME).tar.gz ; then echo ../$(DISTNAME).tar.gz exists, not overwritting ; exit 1; fi
41 svn export . tmp/$(DISTNAME)
42 rm -rf tmp/$(DISTNAME)/debian
43 tar -f - -c -C tmp $(DISTNAME) | gzip -9 > ../$(DISTNAME).tar.gz
45 test -e /etc/debian_version && ln -f ../$(DISTNAME).tar.gz ../$(DEBSRCNAME) || true
46 test -e ../tarballs && ln -f ../$(DISTNAME).tar.gz ../tarballs/$(DEBSRCNAME) || true
49 rm -f ../$(DISTNAME).tar.gz ../tarballs/$(DEBSRCNAME) ../$(DEBSRCNAME)
51 SVNBASE=$(shell svn info | grep URL: | cut -f2 -d' ' | xargs dirname)
54 svn cp $(SVNBASE)/trunk $(SVNBASE)/tags/release_$(shell cat VERSION)
57 # $(MAKE) $(MAKE_FLAGS) build/Makefile
59 # $(MAKE) -C build $(MAKE_FLAGS) $@
61 # needs to be explicite, for PHONY and install (AKA INSTALL) file on cygwin
62 install: build/Makefile
64 $(MAKE) -C build $(MAKE_FLAGS) $@
68 $(MAKE) -C build $(MAKE_FLAGS) $@