~ritho/rweb

15bc677fbcb4f6b2b3477bfea85d0e75fa5ceb4f — Ritho 2 months ago 5819364
Improve the deb-dependencies target.

Signed-off-by: Ritho <palvarez@ritho.net>
1 files changed, 7 insertions(+), 3 deletions(-)

M Makefile
M Makefile => Makefile +7 -3
@@ 60,7 60,6 @@ clean:
	@rm -fr debian/.debhelper debian/debhelper-build-stamp debian/files
	@rm -fr debian/web.substvars debian/web debian/web.postrm.debhelper


.PHONY: build
build:
	@$(MAKE) build-dirs


@@ 83,8 82,13 @@ install:
	@install -m 0755 -d $(ASSETS_DIR)/views

deb-dependencies:
	@apt-get install -y build-essential autoconf autotools-dev git-buildpackage dh-make dh-golang golang-go
	@ln -s /usr/lib/go-1.19/bin/go /usr/bin/go
	@sudo apt-get install -y debian-archive-keyring build-essential autoconf autotools-dev git-buildpackage dh-make dh-golang golang-go
	@if [ ! -f /usr/bin/go ]; then \
		ln -s /usr/lib/go-1.19/bin/go /usr/bin/go ; \
	fi
	@if [ ! -f /var/cache/pbuilder/base.cow ]; then \
		DIST=testing git-pbuilder create --mirror=http://ftp.es.debian.org/debian ; \
	fi

.PHONY: deb
deb: