correct package name
[debian6500.git] / Makefile
CommitLineData
d334508b
LM
1SHELL=/bin/bash
2
3MASTERFILE = trc6500-master-file
4
5VERSION = $(shell awk '/^$(MASTERFILE)/ {gsub(/[()]/, ""); print $$2; exit}' $(MASTERFILE)/debian/debian-changelog)
6
7ISOVER = $(shell echo $(VERSION) | sed 's/-.*$$//')
8
9ISO = simple-cdd/images/debian-7.8-amd64-CD-1.iso
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)
23 cd simple-cdd && build-simple-cdd --dist wheezy --conf ./simple-cdd.conf
24
25masterfile: $(TARGET_DEB)
26
27$(TARGET_DEB):
28 make -C $(MASTERFILE)
29
30clean:
31 rm -f $(TARGET_DEB) $(TARGET_ISO)
d50ae5a7
LM
32
33.PHONY: $(TARGET_DEB)