forked from libyui/libyui-gtk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.repo
63 lines (48 loc) · 1.02 KB
/
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
59
60
61
62
63
#
# Makefile.repo for libyui-gtk
#
# 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 -DCMAKE_INSTALL_PREFIX=/usr ..
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
doc:
test -d build || mkdir build
cd build; \
cmake -DBUILD_DOC=on .. ; \
make doc
install-doc: doc
cd build; \
make install-doc
version-bump:
rake version:bump
# Just an alias
bump-version: 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