Changes in Makefile [e035612:8786aa5] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    re035612 r8786aa5  
    3030#
    3131
    32 .PHONY: all config config_default distclean clean cscope
     32CSCOPE = cscope
     33CONFIG = tools/config.py
     34
     35.PHONY: all config config_default distclean clean cscope precheck
    3336
    3437all: Makefile.config config.h config.defs
    35         $(MAKE) -C kernel
    36         $(MAKE) -C uspace
    37         $(MAKE) -C boot
     38        $(MAKE) -C kernel PRECHECK=$(PRECHECK)
     39        $(MAKE) -C uspace PRECHECK=$(PRECHECK)
     40        $(MAKE) -C boot PRECHECK=$(PRECHECK)
     41
     42precheck: clean
     43        $(MAKE) all PRECHECK=y
     44
     45cscope:
     46        find kernel boot uspace -regex '^.*\.[chsS]$$' | xargs $(CSCOPE) -b -k -u -f$(CSCOPE).out
    3847
    3948Makefile.config: config_default
     
    4453
    4554config_default: HelenOS.config
    46         tools/config.py HelenOS.config default
     55        $(CONFIG) HelenOS.config default
    4756
    4857config: HelenOS.config
    49         tools/config.py HelenOS.config
     58        $(CONFIG) HelenOS.config
    5059
    5160distclean: clean
    52         rm -f Makefile.config config.h config.defs tools/*.pyc
     61        rm -f $(CSCOPE).out Makefile.config config.h config.defs tools/*.pyc
    5362
    5463clean:
    55         -$(MAKE) -C kernel clean
    56         -$(MAKE) -C uspace clean
    57         -$(MAKE) -C boot clean
    58 
    59 cscope:
    60         find kernel boot uspace -regex '^.*\.[chsS]$$' -print > srclist
    61         rm -f cscope.out
    62         cscope -bi srclist
     64        $(MAKE) -C kernel clean
     65        $(MAKE) -C uspace clean
     66        $(MAKE) -C boot clean
Note: See TracChangeset for help on using the changeset viewer.