author | Markus Bröker <mbroeker@largo.dyndns.tv> |
Wed, 25 Mar 2009 08:27:46 +0100 | |
changeset 34 | 900bc2a53fd7 |
parent 33 | 56571d34d754 |
child 43 | 07afbd7a1567 |
permissions | -rw-r--r-- |
28
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
1 |
MAKE=make --no-print-directory |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
2 |
CMAKE=cmake |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
3 |
RMDIR=rm -rf |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
4 |
RM=rm -f |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
5 |
|
30
eed9f710ba3b
This change isn't worth a commit...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
28
diff
changeset
|
6 |
all: build |
28
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
7 |
|
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
8 |
build: build/Makefile |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
9 |
@$(MAKE) -C build |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
10 |
|
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
11 |
prepare: |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
12 |
@if [ ! -d build ]; then mkdir build; fi |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
13 |
|
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
14 |
build/Makefile: prepare |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
15 |
cd build && $(CMAKE) ../src |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
16 |
|
33
56571d34d754
safe buffers, a memory leak and cleanups
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
30
diff
changeset
|
17 |
.PHONY: distclean debclean prepare beauty |
28
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
18 |
|
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
19 |
clean: build/Makefile |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
20 |
@$(MAKE) -C build clean |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
21 |
|
33
56571d34d754
safe buffers, a memory leak and cleanups
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
30
diff
changeset
|
22 |
deb: debclean |
56571d34d754
safe buffers, a memory leak and cleanups
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
30
diff
changeset
|
23 |
dpkg-buildpackage -r |
56571d34d754
safe buffers, a memory leak and cleanups
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
30
diff
changeset
|
24 |
|
56571d34d754
safe buffers, a memory leak and cleanups
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
30
diff
changeset
|
25 |
debclean: |
56571d34d754
safe buffers, a memory leak and cleanups
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
30
diff
changeset
|
26 |
fakeroot debian/rules clean |
56571d34d754
safe buffers, a memory leak and cleanups
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
30
diff
changeset
|
27 |
|
28
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
28 |
distclean: |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
29 |
$(RMDIR) build |
33
56571d34d754
safe buffers, a memory leak and cleanups
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
30
diff
changeset
|
30 |
$(RM) locale/de/LC_MESSAGES/mcbot.mo |
28
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
31 |
|
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
32 |
install: build/Makefile |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
33 |
$(MAKE) -C build install |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
34 |
|
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
35 |
beauty: |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
36 |
find -name '*.[ch]' -exec indent {} \; |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
37 |
find -name '*.[ch]' -exec eraser {} \; |
ef929533d040
Default Makefile for Cmake based projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
38 |
find -name '*~' -exec rm -f {} \; |