summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWerner Schweer <ws.seh.de>2008-02-25 13:02:04 +0000
committerWerner Schweer <ws.seh.de>2008-02-25 13:02:04 +0000
commitffbe4739607d5c9f1e613f920d4303e5e2e25cbb (patch)
treec2531b1c73602e4344879e4a92eacb1d7c2f1575 /Makefile
parentc3320c4ef02bb64ec1110c72d33b53a8a5d453c4 (diff)
build system updates
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile70
1 files changed, 39 insertions, 31 deletions
diff --git a/Makefile b/Makefile
index 2efc7f23..c80965f9 100755
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
# Linux Music Editor
# $Id:$
#
-# Copyright (C) 2002-2006 by Werner Schweer and others
+# Copyright (C) 2002-2008 by Werner Schweer and others
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2.
@@ -18,22 +18,35 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================
-default:
- if test ! -d build; \
+CPUS = `grep -c processor /proc/cpuinfo`
+PREFIX = "/usr/local"
+VERSION = "muse-2.0.0"
+
+release:
+ if test ! -d build; \
then \
- echo "+creating build directory"; \
mkdir build; \
- echo "+entering build directory"; \
cd build; \
- echo "+calling cmake" ; \
- cmake ../muse ; \
+ cmake -DCMAKE_BUILD_TYPE=RELEASE \
+ -DCMAKE_INSTALL_PREFIX="${PREFIX}" \
+ ../muse; \
+ make -j ${CPUS}; \
else \
- echo "+entering build directory"; \
- cd build; \
- fi; \
- echo "+start top level make..."; \
- make -f Makefile
+ echo "build directory does already exist, please remove first with 'make clean'"; \
+ fi;
+debug:
+ if test ! -d build; \
+ then \
+ mkdir build; \
+ cd build; \
+ cmake -DCMAKE_BUILD_TYPE=DEBUG \
+ -DCMAKE_INSTALL_PREFIX="${PREFIX}" \
+ ../muse; \
+ make -j ${CPUS}; \
+ else \
+ echo "build directory does already exist, please remove first with 'make clean'"; \
+ fi
#
# clean out of source build
@@ -43,37 +56,32 @@ clean:
-rm -rf build
#
-# create source distribution
+# dist
+# create source distribution
+# - get current version from sourceforge
+# - remove .svn directories
+# - tar
#
dist:
- cd build; make package_source
- mv build/muse-*.tar.gz .
+ -rm -rf muse.dist
+ mkdir muse.dist
+ cd muse.dist; svn co https://lmuse.svn.sourceforge.net/svnroot/muse/trunk ${VERSION}
+ cd muse.dist; find . -name .svn -print0 | xargs -0 /bin/rm -rf
+ cd muse.dist; tar cvfj ${VERSION}.tar.bz2 ${VERSION}
+ mv muse.dist/${VERSION}.tar.bz2 .
install:
cd build; make install
#
# this creates a shell archive / installer for
-# MusE binary
+# Mscore binary
#
package:
cd build; make package
- mv build/muse-*.sh .
-
-
-# build muse/doc/man/de/man-de.pdf
-# and muse/doc/man/en/man-en.pdf
-manual:
- cd build; make manual
-
-# build muse/doc/dimple/dimpl.pdf
-program_doc:
- cd build; make program_doc
-
-# build doxygen program documentation
-doxy:
- cd build; make doxy
+man:
+ cd build; make man