X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=Makefile;fp=Makefile;h=2c2a28ac3c0ced5afc272f4649fb485c957a8ad1;hb=d334508b86f84e72ffd709233260328c7788abf6;hp=0000000000000000000000000000000000000000;hpb=36dc151b790f15a95324d283e1b92ceaae63fa6b;p=debian6500.git diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2c2a28a --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +SHELL=/bin/bash + +MASTERFILE = trc6500-master-file + +VERSION = $(shell awk '/^$(MASTERFILE)/ {gsub(/[()]/, ""); print $$2; exit}' $(MASTERFILE)/debian/debian-changelog) + +ISOVER = $(shell echo $(VERSION) | sed 's/-.*$$//') + +ISO = simple-cdd/images/debian-7.8-amd64-CD-1.iso + +TARGET_ISO = debian-trc6500-$(ISOVER).iso + +TARGET_DEB = $(MASTERFILE)_$(VERSION)_all.deb + +all: iso masterfile + +iso: $(TARGET_ISO) + +$(TARGET_ISO): $(ISO) + mv $< $@ + +$(ISO): $(TARGET_DEB) + cd simple-cdd && build-simple-cdd --dist wheezy --conf ./simple-cdd.conf + +masterfile: $(TARGET_DEB) + +$(TARGET_DEB): + make -C $(MASTERFILE) + +clean: + rm -f $(TARGET_DEB) $(TARGET_ISO)