X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=Makefile;h=a8bf4dbde8c2498fbddb4722cb5f9453f9250fd7;hb=6c7cd2221dcfed292d2b89d1c18d739323fc2a45;hp=2c2a28ac3c0ced5afc272f4649fb485c957a8ad1;hpb=d334508b86f84e72ffd709233260328c7788abf6;p=debian6500.git diff --git a/Makefile b/Makefile index 2c2a28a..a8bf4db 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SHELL=/bin/bash MASTERFILE = trc6500-master-file -VERSION = $(shell awk '/^$(MASTERFILE)/ {gsub(/[()]/, ""); print $$2; exit}' $(MASTERFILE)/debian/debian-changelog) +VERSION = $(shell awk '/^$(MASTERFILE)/ {gsub(/[()]/, ""); print $$2; exit}' $(MASTERFILE)/changelog) ISOVER = $(shell echo $(VERSION) | sed 's/-.*$$//') @@ -20,6 +20,7 @@ $(TARGET_ISO): $(ISO) mv $< $@ $(ISO): $(TARGET_DEB) + echo $(ISOVER) > master/etc/trc6500_os_version cd simple-cdd && build-simple-cdd --dist wheezy --conf ./simple-cdd.conf masterfile: $(TARGET_DEB) @@ -29,3 +30,7 @@ $(TARGET_DEB): clean: rm -f $(TARGET_DEB) $(TARGET_ISO) + +version: + echo $(VERSION) $(ISOVER) +.PHONY: $(TARGET_DEB)