6 Star 10 Fork 6

FusionStack/FusionStor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 2.25 KB
一键复制 编辑 原始数据 按行查看 历史
qiwuqiang 提交于 2017-07-05 10:08 . rdma close
PLATFORM=`uname -m`
#PLATFORM_OS=`lsb_release -d |awk '{print $$2}'`
#OS_VERSION=`lsb_release -r | awk -F'.' '{print $$1}' |awk '{print $$2}'`
AUSERS=`grep "^mds:" /etc/passwd > /dev/null`
hostname = `hostname`
RELEASE_PATH="/opt/fusionstack"
all: version
make -C build confl.c
make -C build confy.c
make -C build liblich4.la -j10
make -C build -j10
install: version
make -C build confl.c
make -C build confy.c
make -C build liblich4.la -j10
make -C build -j10 install
if [ -f $(RELEASE_PATH)/etc/lich.conf ]; then \
sed -i "s:#home XXX:home "$(RELEASE_PATH)":g" "$(RELEASE_PATH)/etc/lich.conf"; \
fi
make -C include install
make -C admin
make -C manage
make -C remotecopy
make -C cgroup
rm -rf $(RELEASE_PATH)/lich/bin/lichfs
rm -rf $(RELEASE_PATH)/lich/bin/lich.snapshot
rm -rf $(RELEASE_PATH)/lich/bin/lich.inspect
rm -rf $(RELEASE_PATH)/lich/bin/lichbd
ln -s $(RELEASE_PATH)/lich/libexec/lichfs $(RELEASE_PATH)/lich/bin/lichfs
ln -s $(RELEASE_PATH)/lich/libexec/lich.snapshot $(RELEASE_PATH)/lich/bin/lich.snapshot
ln -s $(RELEASE_PATH)/lich/libexec/lich.inspect $(RELEASE_PATH)/lich/bin/lich.inspect
ln -s $(RELEASE_PATH)/lich/libexec/lichbd $(RELEASE_PATH)/lich/bin/lichbd
version:
./tools/get_version.sh
autogen:
./tools/autogen.sh
conf:
# sed -i 's:__PREFIX__:$(RELEASE_PATH)/lich/admin:g' admin/Makefile
echo -ne "install:\n ./install.sh -i $(RELEASE_PATH)/lich\nuninstall:\n ./install.sh -e $(RELEASE_PATH)/lich\n " > cgroup/Makefile
echo -ne "install:\n ./install.sh -i $(RELEASE_PATH)/lich\nuninstall:\n ./install.sh -e $(RELEASE_PATH)/lich\n " > admin/Makefile
echo -ne "install:\n ./install.sh -i $(RELEASE_PATH)/lich\nuninstall:\n ./install.sh -e $(RELEASE_PATH)/lich\n " > manage/Makefile
echo -ne "install:\n ./install.sh -i $(RELEASE_PATH)/lich\nuninstall:\n ./install.sh -e $(RELEASE_PATH)/lich\n " > remotecopy/Makefile
#CFLAGS="-g" ./tools/lichconf.sh "--prefix=$(RELEASE_PATH)/lich" "sysconfdir=$(RELEASE_PATH)/etc" ;
CFLAGS="-O3 -g -Werror=return-type " ./tools/lichconf.sh "--prefix=$(RELEASE_PATH)/lich" "sysconfdir=$(RELEASE_PATH)/etc" ;
#unittest:
# cd chunk && make test
clean:
make -C build clean
make -C include clean
distclean:
make -C build distclean
make -C include distclean
tar:
tools/app_tar.sh "$(RELEASE_PATH)/lich"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/FusionStack/FusionStor.git
git@gitee.com:FusionStack/FusionStor.git
FusionStack
FusionStor
FusionStor
master

搜索帮助