1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-03-09 15:40:18 +00:00

Debian: cleanup build system

This commit is contained in:
Bumsik Kim 2018-06-26 05:02:30 -04:00
parent a97e532b93
commit 7dcf8a8bde
No known key found for this signature in database
GPG key ID: E31041C8EC5B01C6
9 changed files with 22 additions and 71 deletions

View file

@ -5,7 +5,6 @@ VERSION ?= 0.2.4
DOCKER_NAME=kbumsik/virtscreen
DOCKER_RUN=docker run --interactive --tty -v $(shell pwd):/app $(DOCKER_NAME)
DOCKER_RUN_TTY=docker run --interactive --tty -v $(shell pwd):/app $(DOCKER_NAME)
DOCKER_RUN_DEB=docker run -v $(shell pwd)/package/debian:/app $(DOCKER_NAME)
.ONESHELL:
@ -43,14 +42,14 @@ appimage-clean:
.PHONY: deb-contents deb-clean
package/debian/%.deb:
$(DOCKER_RUN_DEB) /app/debmake.sh virtualenv
$(DOCKER_RUN_DEB) /app/copy_debian.sh virtualenv
$(DOCKER_RUN_DEB) /app/debuild.sh virtualenv
$(DOCKER_RUN_DEB) chown -R $(shell id -u):$(shell id -u) /app/build
$(DOCKER_RUN) package/debian/debmake.sh
$(DOCKER_RUN) package/debian/copy_debian.sh
$(DOCKER_RUN) package/debian/debuild.sh
$(DOCKER_RUN) chown -R $(shell id -u):$(shell id -u) package/debian/build
cp package/debian/build/virtscreen*.deb package/debian
deb-contents:
$(DOCKER_RUN_DEB) /app/contents.sh
$(DOCKER_RUN) dpkg -c package/debian/*.deb
deb-clean:
rm -rf package/debian/build package/debian/*.deb