1 Star 0 Fork 0

GXDE OS/deepin-desktop-base

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 6.46 KB
一键复制 编辑 原始数据 按行查看 历史
shenmo 提交于 2025-01-13 09:22 . 2025.01.13
VERSION := 15.14.3
RELEASE := Bixie
ARCH_BUILD :=$(shell uname -m)
all: build
build:
ifeq (${ARCH_BUILD}, mipsel)
cp -v files/appstore_loongson.json files/appstore.json
else ifeq (${ARCH_BUILD}, mips64)
cp -v files/appstore_loongson.json files/appstore.json
else ifeq (${ARCH_BUILD}, mips)
cp -v files/appstore_loongson.json files/appstore.json
endif
ifeq (${ARCH_BUILD}, x86_64)
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version.in > files/desktop-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-version-amd > files/os-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-release-bookworm > files/os-release
else ifeq (${ARCH_BUILD}, i686)
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version.in > files/desktop-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-version-amd > files/os-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-release-bookworm > files/os-release
else ifeq (${ARCH_BUILD}, mipsel)
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version-loongson.in > files/desktop-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-version-loongson > files/os-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-release-bookworm > files/os-release
else ifeq (${ARCH_BUILD}, mips64)
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version-loongson.in > files/desktop-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-version-loongson > files/os-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-release-bookworm > files/os-release
else ifeq (${ARCH_BUILD}, loongarch64)
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version-loongson.in > files/desktop-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-version-loongson > files/os-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-release-trixie > files/os-release
else ifeq (${ARCH_BUILD}, sw_64)
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version-sw.in > files/desktop-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-version-sw > files/os-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-release-bookworm > files/os-release
else ifeq (${ARCH_BUILD}, aarch64)
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version-arm.in > files/desktop-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-version-arm > files/os-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-release-bookworm > files/os-release
else ifeq (${ARCH_BUILD}, riscv64)
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version-riscv.in > files/desktop-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version-riscv-server.in > files/desktop-version-server
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-version-riscv > files/os-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-release-trixie > files/os-release
endif
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/lsb-release.in > files/lsb-release
install:
mkdir -p ${DESTDIR}/etc
mkdir -p ${DESTDIR}/usr/share/i18n
mkdir -p ${DESTDIR}/usr/share/distro-info
mkdir -p ${DESTDIR}/usr/share/python-apt/templates
#mkdir -p ${DESTDIR}/usr/share/backgrounds/deepin
mkdir -p ${DESTDIR}/usr/share/deepin
install -Dm644 files/i18n_dependent.json ${DESTDIR}/usr/share/i18n/i18n_dependent.json
install -Dm644 files/language_info.json ${DESTDIR}/usr/share/i18n/language_info.json
install -Dm644 files/desktop-version ${DESTDIR}/usr/lib/deepin/desktop-version
install -Dm644 files/os-release ${DESTDIR}/usr/lib/deepin/os-release
#install -Dm644 files/lsb-release ${DESTDIR}/etc/lsb-release
install -Dm644 files/appstore.json ${DESTDIR}/etc/appstore.json
install -Dm644 files/deepin-logo.png ${DESTDIR}/usr/share/plymouth/deepin-logo.png
#install -Dm644 files/desktop.jpg ${DESTDIR}/usr/share/backgrounds/deepin/desktop.jpg
#install -Dm644 files/eff98ab2b2d91574a79fabd2b79eb7a9.jpg ${DESTDIR}/var/cache/image-blur/eff98ab2b2d91574a79fabd2b79eb7a9.jpg
[ -e files/systemd.conf ] && install -Dm644 files/systemd.conf ${DESTDIR}/etc/systemd/system.conf.d/deepin-base.conf
[ -e files/logind.conf ] && install -Dm644 files/logind.conf ${DESTDIR}/etc/systemd/logind.conf.d/deepin-base.conf
install -Dm644 files/Deepin.info ${DESTDIR}/usr/share/python-apt/templates/Deepin.info
install -Dm644 files/Deepin.mirrors ${DESTDIR}/usr/share/python-apt/templates/Deepin.mirrors
# config
mkdir -pv $(DESTDIR)/etc/profile.d/
mkdir -pv $(DESTDIR)/etc/apt/apt.conf.d/
mkdir -pv $(DESTDIR)/etc/apt/preferences.d/
mkdir -pv $(DESTDIR)/etc/apt/trusted.gpg.d/
mkdir -pv $(DESTDIR)/etc/apt/sources.list.d/
mkdir -pv $(DESTDIR)/etc/xdg/autostart
mkdir -pv $(DESTDIR)/usr/bin
mkdir -pv $(DESTDIR)/usr/lib/systemd/system/
mkdir -pv $(DESTDIR)/usr/share/polkit-1/rules.d/
mkdir -pv $(DESTDIR)/etc/default/grub.d/
mkdir -p ${DESTDIR}/tmp
#cp -rv debian-backports.list $(DESTDIR)/tmp/debian-backports.list
cp -rv dde-file-manager-gvfs.rules $(DESTDIR)/usr/share/polkit-1/rules.d/dde-file-manager-gvfs.rules
cp -rv gxde.sh $(DESTDIR)/etc/profile.d/gxde.sh
#cp -rv gxde.list $(DESTDIR)/etc/apt/sources.list.d/gxde.list
#cp -rv gxde.gpg $(DESTDIR)/etc/apt/trusted.gpg.d/gxde.gpg
cp -rv 90bookworm-kernel-backports $(DESTDIR)/etc/apt/preferences.d/
cp -rv 90gxde-valid.conf $(DESTDIR)/etc/apt/apt.conf.d/
cp gxde-config-after-desktop $(DESTDIR)/usr/bin/gxde-config-after-desktop
cp gxde-config-after-desktop.desktop $(DESTDIR)/etc/xdg/autostart/gxde-config-after-desktop.desktop
cp GXDE-grub.cfg $(DESTDIR)/etc/default/grub.d/GXDE-grub.cfg
chmod +x $(DESTDIR)/etc/profile.d/gxde.sh
chmod +x $(DESTDIR)/usr/bin/gxde-config-after-desktop
clean:
rm -f files/desktop-version
rm -f files/lsb-release
rm -f files/os-version
rm -f files/os-release
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/GXDE-OS/deepin-desktop-base.git
git@gitee.com:GXDE-OS/deepin-desktop-base.git
GXDE-OS
deepin-desktop-base
deepin-desktop-base
master

搜索帮助