blob: e670abe6bccde330e42eb53ab7569d9873b86603 (
plain)
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
|
# -*-makefile-*-
check_tools_deps = check_dirs
check_tools_deps += $(STATEDIR)/host-pkg-config-wrapper.install
ifdef $(PTXCONF_IMAGE_IPKG)
check_tools_deps += $(STATEDIR)/host-ipkg-utils.install
endif
check_tools: $(check_tools_deps)
@echo "running check_tools..."
# # check if some programs are available
$(call check_prog_exists, sed)
$(call check_prog_exists, awk)
$(call check_prog_exists, perl)
$(call check_prog_exists, wget)
$(call check_prog_exists, pkg-config)
# # check if some programs are installed in the right version
$(call check_prog_version, wget, -V, 1\\\\.(9|1.?)\\\\.|1\\\\.9\\\\+cvs)
# # check if we have a toplevel .config file
$(call check_file_exists, $(PTXDIST_WORKSPACE)/.config)
# # check if we have a project dir
@if [ -z "$(PROJECTDIR)" ]; then \
echo; \
echo "PROJECTDIR is empty. This usually means that you have"; \
echo "set PTXCONF_PROJECT, but there is no .ptxconfig file "; \
echo "in projects/some-project/\$$PTXCONF_PROJECT.ptxconfig."; \
echo "Please copy your .config file to that location."; \
echo; \
echo "Example: projects/foo/foo4711.ptxconfig if \$$PTXCONF_PROJECT is foo4711"; \
echo; \
exit 1; \
fi
# # check if we have a project rules dir
@if ! [ -d "$(PROJECTRULESDIR)" ]; then \
echo; \
echo "You need a rules/ directory in your PROJECTDIR. If your PTXdist project "; \
echo "is called 'foo' your projectdir is usually local_projects/foo, and I "; \
echo "expect your PROJECTRULESDIR to be local_projects/foo/rules."; \
echo "check if this project does exist."; \
echo; \
exit 1; \
fi
|