-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.repo
58 lines (43 loc) · 950 Bytes
/
Makefile.repo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# Makefile.repo for Myrlyn
#
# Local Variables:
# mode: Makefile
# End:
all: clean configure build-hint
build-hint:
@echo ""
@echo "To build:"
@echo ""
@echo " cd build"
@echo " make"
@echo ""
configure:
mkdir build; \
cd build; \
cmake ..
build: clean configure
cd build; \
make -j $$(nproc)
# This needs root privileges, of course
install: configure
cd build; \
make -j $$(nproc) && make install
clean:
rm -rf build
package:
rake package
version-bump:
rake version:bump
so-version-bump:
rake so_version:bump
# Just some aliases
bump-version: version-bump
bump-so-version: so-version-bump
# Enforce rebuilding some targets unconditionally, even if a file or directory
# with that name exists; otherwise the timestamp of that file or directory
# would be checked.
#
# We need this because we have a subdirectory doc/, a subdirectory package/
# and possibly a subdirectory build/ here.
.PHONY: doc package build