Convert build system into using cmake.
git-svn-id: svn://svn.code.sf.net/p/jack-keyboard/code/trunk@21 1fa2bf75-7d80-4145-9e94-f9b4e25a1cb2
This commit is contained in:
47
Makefile
Normal file
47
Makefile
Normal file
@@ -0,0 +1,47 @@
|
||||
VERSION?=2.6
|
||||
|
||||
help:
|
||||
@echo "Targets: configure all clean install package"
|
||||
|
||||
configure:
|
||||
|
||||
rm -rf build
|
||||
|
||||
mkdir build
|
||||
|
||||
cd build ; cmake ..
|
||||
|
||||
all:
|
||||
make -C build all
|
||||
|
||||
install:
|
||||
make -C build install
|
||||
|
||||
clean:
|
||||
make -C build clean
|
||||
|
||||
package:
|
||||
make -C build clean || echo -n
|
||||
|
||||
tar -cvf temp.tar --exclude="*~" --exclude="*#" \
|
||||
--exclude=".svn" --exclude="*.orig" --exclude="*.rej" \
|
||||
AUTHORS \
|
||||
CMakeLists.txt \
|
||||
COPYING \
|
||||
Makefile \
|
||||
NEWS \
|
||||
README \
|
||||
TODO \
|
||||
cmake \
|
||||
man \
|
||||
src
|
||||
|
||||
rm -rf jack-keyboard-${VERSION}
|
||||
|
||||
mkdir jack-keyboard-${VERSION}
|
||||
|
||||
tar -xvf temp.tar -C jack-keyboard-${VERSION}
|
||||
|
||||
rm -rf temp.tar
|
||||
|
||||
tar -zcvf jack-keyboard-${VERSION}.tar.gz jack-keyboard-${VERSION}
|
||||
Reference in New Issue
Block a user