summaryrefslogtreecommitdiff
path: root/Makefile
blob: b65f0c674cbec321403fbc5ab7277348172c653f (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.PHONY: secrets test tw/system/%.test tw/home/%.test images tw/system/installer/%.image

systems = $(wildcard tw/system/*.scm)
homes = $(wildcard tw/home/*.scm)
installers = $(wildcard tw/system/installer/*.scm)

test: $(homes:.scm=.test) $(systems:.scm=.test)
images: $(installers:.scm=.image)

tw/home/%.test: tw/home/%.scm
	guix home build -nL $(CURDIR) $<

tw/system/%.test: tw/system/%.scm
	guix system build -nL $(CURDIR) $<

tw/system/installer/%.image: tw/system/installer/%.scm
	guix system image -L $(CURDIR) -t iso9660 --label=GUIX_$$(date -Idate) $<

secrets: regenerate-secrets.sh
	$(CURDIR)/$<