Changeset 83b64a59 in mainline for uspace/Makefile


Ignore:
Timestamp:
2019-06-05T16:03:03Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b401b33
Parents:
58168e0
Message:

Minor cleanup of uspace makefiles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile

    r58168e0 r83b64a59  
    223223#
    224224
    225 BASE_LIBS = \
    226         lib/c \
    227         lib/cpp
    228 
    229 LIBS = \
     225DIRS += \
    230226        lib/fs \
    231227        lib/block \
     228        lib/c \
     229        lib/cpp \
    232230        lib/crypto \
    233231        lib/clui \
     
    266264        lib/virtio
    267265
    268 BASE_BUILDS := $(addsuffix .build,$(BASE_LIBS))
    269 BUILDS := $(addsuffix .build,$(DIRS) $(LIBS))
    270 BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) $(BASE_LIBS))
    271 DEPS = $(addsuffix /deps.mk,$(DIRS) $(LIBS))
    272 CLEANS := $(addsuffix .clean,$(DIRS) $(LIBS) $(BASE_LIBS))
    273 
    274 .PHONY: all $(BASE_BUILDS) $(BUILDS) $(BUILDS_TESTS) $(CLEANS) clean export
     266BUILDS := $(addsuffix .build,$(DIRS))
     267BUILDS_TESTS := $(addsuffix .build-test,$(DIRS))
     268DEPS = $(addsuffix /deps.mk,$(DIRS))
     269CLEANS := $(addsuffix .clean,$(DIRS))
     270
     271.PHONY: all $(BUILDS) $(BUILDS_TESTS) $(CLEANS) clean export
    275272
    276273all: $(BUILDS) $(BUILDS_TESTS)
    277274
    278 $(BUILDS_TESTS): $(BASE_BUILDS) $(BUILDS)
     275$(BUILDS_TESTS): $(BUILDS)
    279276        $(MAKE) -r -C $(basename $@) all-test PRECHECK=$(PRECHECK)
    280277
     
    292289        -$(MAKE) -r -C $(basename $@) fasterclean
    293290
    294 $(BASE_BUILDS) $(BUILDS):
     291$(BUILDS):
    295292        $(MAKE) -r -C $(basename $@) all PRECHECK=$(PRECHECK)
    296293
     
    298295        $(MAKE) -r -C $(@D) deps.mk SELF_TARGET="$(@D).build"
    299296
    300 $(BUILDS): $(BASE_BUILDS)
    301 
    302297-include $(DEPS)
Note: See TracChangeset for help on using the changeset viewer.