mirror of
https://github.com/vishapoberon/vipak.git
synced 2026-04-05 20:42:26 +00:00
64 lines
2 KiB
Text
64 lines
2 KiB
Text
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
|
mkfile_dir_path := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
|
build_dir_path := $(mkfile_dir_path)/build
|
|
current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
|
|
BLD := $(mkfile_dir_path)/build
|
|
|
|
VOC = voc
|
|
VERSION_FILE = ./VersionFile.json
|
|
BLD = build
|
|
DPS = dps
|
|
VIPACK = vipack
|
|
|
|
|
|
all: deps
|
|
|
|
#git submodule init
|
|
#git submodule update
|
|
mkdir -p $(build_dir_path)
|
|
cd $(build_dir_path)
|
|
make -f $(mkfile_dir_path)/dps/lists/makefile BUILD=$(build_dir_path)
|
|
make -f $(mkfile_dir_path)/dps/Internet/makefile BUILD=$(build_dir_path)
|
|
make -f $(mkfile_dir_path)/dps/time/makefile BUILD=$(build_dir_path)
|
|
make -f $(mkfile_dir_path)/dps/opts/makefile BUILD=$(build_dir_path)
|
|
cd $(build_dir_path) && \
|
|
$(VOC) -s \
|
|
../src/vpkSettings.Mod \
|
|
../src/unix/vpkFreeBSDFiles.Mod \
|
|
../src/unix/vpkTime.Mod \
|
|
../src/vpkLogger.Mod \
|
|
../src/vpkHttp.Mod \
|
|
../src/unix/vpkEnv.Mod \
|
|
../src/unix/vpkGit.Mod \
|
|
../src/vpkCharacterStack.Mod \
|
|
../src/vpkJsonParser.Mod \
|
|
../src/vpkConf.Mod \
|
|
../src/vpkStorage.Mod \
|
|
../src/vpkSyncer.Mod \
|
|
../src/vpkdepTree.Mod \
|
|
../src/vpkDot.Mod \
|
|
../src/vpkResolver.Mod \
|
|
../src/vpkJsonDepRetriever.Mod \
|
|
../src/vpkInstaller.Mod \
|
|
../src/vipack.Mod -m
|
|
|
|
deps:
|
|
mkdir -p $(mkfile_dir_path)/$(DPS)
|
|
cd $(mkfile_dir_path)/$(DPS)
|
|
test -d Internet && cd Internet; git pull || git clone https://github.com/norayr/Internet
|
|
test -d lists && cd lists; git pull || git clone https://github.com/norayr/lists
|
|
test -d opts && cd opts; git pull || git clone https://github.com/norayr/opts
|
|
test -d time && cd time; git pull || git clone https://github.com/norayr/time
|
|
|
|
tests:
|
|
mkdir -p $(mkfile_dir_path)/$(BLD)
|
|
cd $(mkfile_dir_path)/$(BLD)
|
|
$(VOC) -s ../src/unix/vpkFiles.Mod ../tst/testFiles.Mod -m
|
|
cd $(BLD) && $(VOC) -s ../src/vpkJsonParser.Mod ../tst/testJsonParser.Mod -m
|
|
mkfifo /tmp/fifo
|
|
$(BLD)/testFiles
|
|
rm /tmp/fifo
|
|
$(BLD)/testJsonParser
|
|
|
|
clean:
|
|
if [ -d "$(BLD)" ]; then rm -rf $(BLD); fi
|