Changes in Makefile [2660ee3:7f345cd0] in mainline
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r2660ee3 r7f345cd0 30 30 .NOTPARALLEL: 31 31 32 CCHECK = tools/sycek/ccheck33 32 CSCOPE = cscope 34 33 FORMAT = clang-format … … 45 44 CONFIG_MAKEFILE = Makefile.config 46 45 CONFIG_HEADER = config.h 47 ERRNO_HEADER = abi/include/abi/errno.h48 ERRNO_INPUT = abi/include/abi/errno.in49 46 50 .PHONY: all precheck cscope cscope_parts autotool config_auto config_default config distclean clean check releasefile release common boot kernel uspace export-posix47 .PHONY: all precheck cscope cscope_parts autotool config_auto config_default config distclean clean check releasefile release common boot kernel uspace 51 48 52 49 all: kernel uspace 53 50 $(MAKE) -r -C boot PRECHECK=$(PRECHECK) 54 51 55 common: $(COMMON_MAKEFILE) $(COMMON_HEADER) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(ERRNO_HEADER)52 common: $(COMMON_MAKEFILE) $(COMMON_HEADER) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) 56 53 57 54 kernel: common … … 60 57 uspace: common 61 58 $(MAKE) -r -C uspace PRECHECK=$(PRECHECK) 62 63 export-posix: common64 ifndef EXPORT_DIR65 @echo ERROR: Variable EXPORT_DIR is not defined. && false66 else67 $(MAKE) -r -C uspace export EXPORT_DIR=$(abspath $(EXPORT_DIR))68 endif69 59 70 60 precheck: clean … … 83 73 find abi kernel boot uspace -type f -regex '^.*\.[ch]$$' | xargs $(FORMAT) -i -sort-includes -style=file 84 74 85 ccheck: $(CCHECK)86 tools/ccheck.sh87 88 ccheck-fix: $(CCHECK)89 tools/ccheck.sh --fix90 91 $(CCHECK):92 cd tools && ./build-ccheck.sh93 94 75 doxy: 95 76 $(MAKE) -r -C doxygen … … 102 83 $(CHECK) 103 84 endif 104 105 # `sed` pulls a list of "compatibility-only" error codes from `errno.in`,106 # the following grep finds instances of those error codes in HelenOS code.107 check_errno:108 @ ! cat abi/include/abi/errno.in | \109 sed -n -e '1,/COMPAT_START/d' -e 's/__errno_entry(\([A-Z0-9]\+\).*/\\b\1\\b/p' | \110 git grep -n -f - -- ':(exclude)abi' ':(exclude)uspace/lib/posix'111 85 112 86 # Autotool (detects compiler features) … … 151 125 $(MAKE) -r -C doxygen clean 152 126 153 $(ERRNO_HEADER): $(ERRNO_INPUT)154 echo '/* Generated file. Edit errno.in instead. */' > $@.new155 sed 's/__errno_entry(\([^,]*\),\([^,]*\),.*/#define \1 __errno_t(\2)/' < $< >> $@.new156 mv $@.new $@157 158 127 -include Makefile.local
Note:
See TracChangeset
for help on using the changeset viewer.