Changes in Makefile [4cac212c:8359969] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r4cac212c r8359969  
    3030#
    3131
    32 .PHONY: all config distclean clean cscope
     32CSCOPE = cscope
     33STANSE = stanse
     34
     35.PHONY: all config config_default distclean clean cscope stanse
    3336
    3437all: Makefile.config config.h config.defs
     
    3740        $(MAKE) -C boot
    3841
    39 Makefile.config config.h config.defs: HelenOS.config
     42stanse: Makefile.config config.h config.defs
     43        $(MAKE) -C kernel clean
     44        $(MAKE) -C kernel EXTRA_TOOL=stanse
     45        $(STANSE) --checker ReachabilityChecker --checker ThreadChecker:contrib/$(STANSE)/ThreadChecker.xml --jobfile kernel/kernel.job
     46
     47cscope:
     48        find kernel boot uspace -regex '^.*\.[chsS]$$' | xargs $(CSCOPE) -b -k -u -f$(CSCOPE).out
     49
     50Makefile.config: config_default
     51
     52config.h: config_default
     53
     54config.defs: config_default
     55
     56config_default: HelenOS.config
    4057        tools/config.py HelenOS.config default
    4158
    42 config:
     59config: HelenOS.config
    4360        tools/config.py HelenOS.config
    4461
    4562distclean: clean
    46         rm -f Makefile.config config.h config.defs tools/*.pyc
     63        rm -f $(CSCOPE).out Makefile.config config.h config.defs tools/*.pyc
    4764
    4865clean:
    49         -$(MAKE) -C kernel clean
    50         -$(MAKE) -C uspace clean
    51         -$(MAKE) -C boot clean
    52 
    53 cscope:
    54         find kernel boot uspace -regex '^.*\.[chsS]$$' -print > srclist
    55         rm -f cscope.out
    56         cscope -bi srclist
     66        $(MAKE) -C kernel clean
     67        $(MAKE) -C uspace clean
     68        $(MAKE) -C boot clean
Note: See TracChangeset for help on using the changeset viewer.