Changes in boot/Makefile [a79d88d:cc1a727] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile

    ra79d88d rcc1a727  
    5050        $(MKFAT) 1048576 $(DIST_PATH) $@
    5151endif
     52ifeq ($(RDFMT),ext2fs)
     53        $(MKEXT2) 1048576 $(DIST_PATH) $@
     54endif
    5255
    5356build_dist: clean_dist
    5457        for file in $(RD_SRVS) ; do \
    5558                cp "$$file" "$(DIST_PATH)/srv/" ; \
     59        done
     60        for file in $(RD_LIBS) ; do \
     61                cp "$$file" "$(DIST_PATH)/lib/" ; \
    5662        done
    5763        for file in $(RD_APPS) ; do \
     
    6268        done
    6369        for drv in $(RD_DRVS) ; do \
    64                 mkdir -p "$(DIST_PATH)/$(DRVS_PATH)/$$drv" ; \
    65                 cp "$(USPACE_PATH)/$(DRVS_PATH)/$$drv/$$drv" "$(DIST_PATH)/$(DRVS_PATH)/$$drv/$$drv" ; \
    66                 cp "$(USPACE_PATH)/$(DRVS_PATH)/$$drv/$$drv.ma" "$(DIST_PATH)/$(DRVS_PATH)/$$drv/$$drv.ma" ; \
     70                drv_dir="`dirname "$$drv"`" ; \
     71                drv_name="`basename "$$drv"`" ; \
     72                mkdir -p "$(DIST_PATH)/$(DRVS_PATH)/$$drv_name" ; \
     73                cp "$(USPACE_PATH)/$(DRVS_PATH)/$$drv_dir/$$drv_name/$$drv_name" "$(DIST_PATH)/$(DRVS_PATH)/$$drv_name/" ; \
     74                cp "$(USPACE_PATH)/$(DRVS_PATH)/$$drv_dir/$$drv_name/$$drv_name.ma" "$(DIST_PATH)/$(DRVS_PATH)/$$drv_name/" ; \
    6775        done
    6876        for file in $(RD_DRV_CFG) ; do \
    69                 cp "$(USPACE_PATH)/$(DRVS_PATH)/$$file" "$(DIST_PATH)/$(DRVS_PATH)/$$file" ; \
     77                file_dir="`dirname "$$file"`" ; \
     78                file_name="`basename "$$file"`" ; \
     79                cp "$(USPACE_PATH)/$(DRVS_PATH)/$$file_dir/$$file_name/$$file_name.dev" "$(DIST_PATH)/$(DRVS_PATH)/$$file_name/" ; \
    7080        done
    71        
     81
    7282clean: clean_dist
    7383        $(MAKE) -f $(BUILD) clean PRECHECK=$(PRECHECK)
     
    8393        rm -f $(USPACE_PATH)/dist/srv/*
    8494        rm -rf $(USPACE_PATH)/dist/drv/*
     95        rm -f $(USPACE_PATH)/dist/lib/*
    8596        rm -f $(USPACE_PATH)/dist/app/*
    8697        rm -f $(USPACE_PATH)/dist/cfg/net/*
Note: See TracChangeset for help on using the changeset viewer.