summarylogtreecommitdiffstats
path: root/Makefile
blob: 97abc644bfd9d1507618a99bf81e3b68a36d17f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
export SHELL = /usr/bin/env bash -xe
export PS4=\[\e[93m\]+MAKE+ \[\e[m\]

# override above values in your .local file.
# CHROOTPATH the value for
CHROOTPATH=/scratch/.chroot
#TODO: way to tell makepkg to use doas
-include Makefile.local

default: all
all: clean build
.PHONY: info
info:
	$(info lazy makepkg v1)
	$(info CHROOTPATH is "$(CHROOTPATH)")
	$(info )
.PHONY: help
help: info
	$(info )
	$(info clean: self explanatory)
	$(info build: default. lint and build in a new chroot)
.PHONY: clean
clean:
	-rm -f *.tgz *.tar.gz
	-rm -fr src/*

.PHONY: lint
lint: PKGBUILD
	namcap $<
	shellcheck --shell=bash --exclude=SC2034,SC2154,SC2164 $<

.PHONY: build
build: info lint
	extra-x86_64-build -r $(CHROOTPATH)
	makepkg --printsrcinfo > .SRCINFO