X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.am;h=bea1cfc1c39868b1e0bda5d3266025e4a8d224c1;hb=1fa5b119950780b8ad2c052d737b8b8f89e0ef2d;hp=701bf6b4d1481973ad68c95f506ad3a84cbdc6f7;hpb=97d97ef5c4e0d5494e4b1301903c7730df6421a1;p=ngircd-alex.git diff --git a/Makefile.am b/Makefile.am index 701bf6b4..bea1cfc1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,12 +32,21 @@ lint: srcdoc: make -C doc srcdoc -xcode: +have-xcodebuild: @xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -list \ >/dev/null 2>&1 \ || ( echo; echo "Error: \"xcodebuild\" not found!"; echo; exit 1 ) + +xcode: have-xcodebuild + rel=`grep AC_INIT configure.in | cut -d' ' -f2 | cut -d')' -f1`; \ + def="GCC_PREPROCESSOR_DEFINITIONS=\"VERSION=\\\"$$rel\\\"\""; \ + xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \ + -configuration Default $$def build + +xcode-clean: have-xcodebuild xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -alltargets \ - -buildstyle Development + -configuration Default clean + rm -fr contrib/MacOSX/build rpm: distcheck rpm -ta ngircd-*.tar.gz @@ -46,8 +55,8 @@ deb: [ -f debian/rules ] || ln -s contrib/Debian debian dpkg-buildpackage -rfakeroot -i -osxpkg: - @packagemaker >/dev/null 2>&1; [ $$? -ge 1 ] \ +osxpkg: have-xcodebuild + @packagemaker >/dev/null 2>&1; [ $$? -le 1 ] \ || ( echo; echo "Error: \"packagemaker\" not found!"; echo; exit 2) make clean ./configure --prefix=/opt/ngircd