update to Debian 12
[debian6500.git] / Makefile
CommitLineData
d334508b
LM
1SHELL=/bin/bash
2
3MASTERFILE = trc6500-master-file
4
2d6251df 5VERSION = $(shell awk '/^$(MASTERFILE)/ {gsub(/[()]/, ""); print $$2; exit}' $(MASTERFILE)/changelog)
d334508b
LM
6
7ISOVER = $(shell echo $(VERSION) | sed 's/-.*$$//')
8
f5f2b8a0 9ISO = simple-cdd/images/debian-12-amd64-CD-1.iso
d334508b
LM
10
11TARGET_ISO = debian-trc6500-$(ISOVER).iso
12
13TARGET_DEB = $(MASTERFILE)_$(VERSION)_all.deb
14
15all: iso masterfile
16
17iso: $(TARGET_ISO)
18
19$(TARGET_ISO): $(ISO)
20 mv $< $@
21
22$(ISO): $(TARGET_DEB)
f5f2b8a0 23 cd simple-cdd && build-simple-cdd --keyring ~/.gnupg/pubring.gpg --dist bookworm --conf ./simple-cdd.conf
d334508b
LM
24
25masterfile: $(TARGET_DEB)
26
27$(TARGET_DEB):
6153c57a 28 echo $(ISOVER) > master/etc/trc6500_os_version
d334508b
LM
29 make -C $(MASTERFILE)
30
31clean:
32 rm -f $(TARGET_DEB) $(TARGET_ISO)
d50ae5a7 33
dfedbf47
LM
34version:
35 echo $(VERSION) $(ISOVER)
d50ae5a7 36.PHONY: $(TARGET_DEB)