]> git.proxmox.com Git - aab.git/blame - Makefile
bsys: Drop i686 support
[aab.git] / Makefile
CommitLineData
2142625a 1TODAY != date '+%Y%m%d'
82975d22
WB
2
3VERSION := $(TODAY)-1
e374e7a7
SI
4ARCH := amd64
5V_ARCH := $(VERSION)_$(ARCH)
82975d22 6
ac5c32c7
WB
7PERL := perl -I.
8
82975d22 9.PHONY: default
0cff4ef1 10default: base-amd64
82975d22
WB
11
12# we should always regenerate this:
e374e7a7 13.PHONY: aab.conf
82975d22 14aab.conf:
7715f2d4 15 echo 'Name: archlinux-base' > aab.conf
82975d22 16 echo 'Version: $(VERSION)' >> aab.conf
da8dfe0b 17 echo 'Section: system' >> aab.conf
82975d22
WB
18 echo 'Maintainer: Proxmox Support Team <support@proxmox.com>' >> aab.conf
19 echo 'Source: http://archlinux.cu.be/$$repo/os/$$arch' >> aab.conf
e374e7a7 20 echo 'Architecture: $(ARCH)' >> aab.conf
82975d22 21 echo 'Headline: ArchLinux base image.' >> aab.conf
82975d22 22
e374e7a7
SI
23.PHONY: base-$(ARCH)
24base-$(ARCH): aab.conf archlinux-base_$(V_ARCH).tar.gz
25
26archlinux-base_$(V_ARCH).tar.gz: build-current
82975d22
WB
27
28.PHONY: build-current
29build-current: check-all
ac5c32c7
WB
30 $(PERL) ./aab init
31 $(PERL) ./aab bootstrap
32 $(PERL) ./aab finalize
33 $(PERL) ./aab clean
82975d22
WB
34
35.PHONY: check-pacman
36check-pacman:
37 @which pacman >/dev/null || (echo Dependency error:; echo 'Please install the arch-pacman package'; echo; false)
38
39.PHONY: check-root
40check-root:
41 @test 0 -eq "`id -u`" || (echo Permission error:; echo 'aab needs to be run as root'; echo; false)
42
43.PHONY: check-all
44check-all: check-pacman check-root
45
46.PHONY: clean
47clean:
ac5c32c7 48 @$(PERL) ./aab clean
82975d22
WB
49
50.PHONY: distclean
51distclean:
ac5c32c7 52 @$(PERL) ./aab dist-clean