mirror of
https://git.proxmox.com/git/proxmox-i18n
synced 2025-04-29 15:46:12 +00:00
buildsys: use source package name derived build directory
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
0de4c3cabe
commit
3539b19441
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
dest/
|
/proxmox-i18n*/
|
||||||
*.deb
|
*.deb
|
||||||
*.buildinfo
|
*.buildinfo
|
||||||
*.changes
|
*.changes
|
||||||
@ -7,3 +7,4 @@ dest/
|
|||||||
/pmg-lang-*.js
|
/pmg-lang-*.js
|
||||||
/pve-lang-*.js
|
/pve-lang-*.js
|
||||||
/messages.pot
|
/messages.pot
|
||||||
|
/build-debs
|
||||||
|
23
Makefile
23
Makefile
@ -27,6 +27,8 @@ LINGUAS=\
|
|||||||
zh_CN \
|
zh_CN \
|
||||||
zh_TW \
|
zh_TW \
|
||||||
|
|
||||||
|
BUILDDIR ?= ${DEB_SOURCE}-${DEB_VERSION}
|
||||||
|
|
||||||
PVE_I18N_DEB=pve-i18n_${DEB_VERSION}_all.deb
|
PVE_I18N_DEB=pve-i18n_${DEB_VERSION}_all.deb
|
||||||
PMG_I18N_DEB=pmg-i18n_${DEB_VERSION}_all.deb
|
PMG_I18N_DEB=pmg-i18n_${DEB_VERSION}_all.deb
|
||||||
PBS_I18N_DEB=pbs-i18n_${DEB_VERSION}_all.deb
|
PBS_I18N_DEB=pbs-i18n_${DEB_VERSION}_all.deb
|
||||||
@ -43,17 +45,20 @@ PBS_LANG_FILES=$(patsubst %, pbs-lang-%.js, $(LINGUAS))
|
|||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
||||||
|
$(BUILDDIR): submodule
|
||||||
|
rm -rf $@ $@.tmp
|
||||||
|
rsync -a * $@.tmp
|
||||||
|
mv $@.tmp $@
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: $(DEBS)
|
deb: $(DEBS)
|
||||||
$(PMG_I18N_DEB): $(PVE_I18N_DEB)
|
$(DEBS): build-debs
|
||||||
$(PBS_I18N_DEB): $(PVE_I18N_DEB)
|
|
||||||
$(PVE_I18N_DEB): | submodule
|
build-debs: $(BUILDDIR)
|
||||||
rm -rf dest
|
cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
|
||||||
rsync -a * dest
|
lintian $(DEBS)
|
||||||
cd dest; dpkg-buildpackage -b -us -uc
|
touch "$@"
|
||||||
lintian $(DEBS)
|
|
||||||
|
|
||||||
.PHONY: submodule
|
|
||||||
submodule:
|
submodule:
|
||||||
test -f pmg-gui/Makefile -a -f proxmox-backup/Makefile -a -f pve-manager/Makefile \
|
test -f pmg-gui/Makefile -a -f proxmox-backup/Makefile -a -f pve-manager/Makefile \
|
||||||
|| git submodule update --init
|
|| git submodule update --init
|
||||||
@ -114,7 +119,7 @@ distclean: clean
|
|||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
find . -name '*~' -exec rm {} ';'
|
find . -name '*~' -exec rm {} ';'
|
||||||
rm -rf dest *.po.tmp *.js.tmp *.deb *.buildinfo *.changes *.js messages.pot
|
rm -rf $(DEB_SOURCE)-[0-9]*/ *.po.tmp *.js.tmp *.deb *.buildinfo *.changes *.js messages.pot
|
||||||
|
|
||||||
.PHONY: upload-pve upload-pmg upload-pbs upload
|
.PHONY: upload-pve upload-pmg upload-pbs upload
|
||||||
upload-pve: ${PVE_I18N_DEB}
|
upload-pve: ${PVE_I18N_DEB}
|
||||||
|
Loading…
Reference in New Issue
Block a user