Changes in Makefile [3654684:3c7702c0] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r3654684 r3c7702c0  
    3030.NOTPARALLEL:
    3131
     32CCHECK = tools/sycek/ccheck
    3233CSCOPE = cscope
    3334FORMAT = clang-format
     
    4445CONFIG_MAKEFILE = Makefile.config
    4546CONFIG_HEADER = config.h
     47ERRNO_HEADER = abi/include/abi/errno.h
     48ERRNO_INPUT = abi/include/abi/errno.in
    4649
    4750.PHONY: all precheck cscope cscope_parts autotool config_auto config_default config distclean clean check releasefile release common boot kernel uspace
     
    5053        $(MAKE) -r -C boot PRECHECK=$(PRECHECK)
    5154
    52 common: $(COMMON_MAKEFILE) $(COMMON_HEADER) $(CONFIG_MAKEFILE) $(CONFIG_HEADER)
     55common: $(COMMON_MAKEFILE) $(COMMON_HEADER) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(ERRNO_HEADER)
    5356
    5457kernel: common
     
    7376        find abi kernel boot uspace -type f -regex '^.*\.[ch]$$' | xargs $(FORMAT) -i -sort-includes -style=file
    7477
     78ccheck: $(CCHECK)
     79        tools/ccheck.sh
     80
     81$(CCHECK):
     82        cd tools && ./build-ccheck.sh
     83
     84doxy:
     85        $(MAKE) -r -C doxygen
     86
    7587# Pre-integration build check
    7688check: $(CHECK)
     
    8092        $(CHECK)
    8193endif
     94
     95# `sed` pulls a list of "compatibility-only" error codes from `errno.in`,
     96# the following grep finds instances of those error codes in HelenOS code.
     97check_errno:
     98        @ ! cat abi/include/abi/errno.in | \
     99        sed -n -e '1,/COMPAT_START/d' -e 's/__errno_entry(\([A-Z0-9]\+\).*/\\b\1\\b/p' | \
     100        git grep -n -f - -- ':(exclude)abi' ':(exclude)uspace/lib/posix'
    82101
    83102# Autotool (detects compiler features)
     
    120139        $(MAKE) -r -C uspace clean
    121140        $(MAKE) -r -C boot clean
     141        $(MAKE) -r -C doxygen clean
     142
     143$(ERRNO_HEADER): $(ERRNO_INPUT)
     144        echo '/* Generated file. Edit errno.in instead. */' > $@.new
     145        sed 's/__errno_entry(\([^,]*\),\([^,]*\),.*/#define \1 __errno_t(\2)/' < $< >> $@.new
     146        mv $@.new $@
    122147
    123148-include Makefile.local
Note: See TracChangeset for help on using the changeset viewer.