Add Makefile

This commit is contained in:
Victor Timofei 2022-04-07 21:00:08 +03:00
parent 582c0c4057
commit 8955a84e64
Signed by: vtimofei
GPG Key ID: B790DCEBE281403A
1 changed files with 26 additions and 0 deletions

26
Makefile Normal file
View File

@ -0,0 +1,26 @@
MAKEPKG=makepkg
PKGS=gdb-multiarch
.PHONY: all
all: build-$(PKGS)
.PHONY: install-all
install-all: install-$(PKGS)
.PHONY: build-$(PKGS)
build-$(PKGS): $(PKGS)/PKGBUILD
@cd `echo $@ | sed 's/build-//'` && \
$(MAKEPKG) -s
.PHONY: install-$(PKGS)
install-$(PKGS):
@cd `echo $@ | sed 's/install-//'` && \
$(MAKEPKG) -i
.PHONY: clean
clean:
@sudo rm -rf ./*/pkg
@rm -rf ./*/src
@rm -rf ./*/*.sig
@rm -rf ./*/*.tar.xz
@rm -rf ./*/*.zst