X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=Makefile;h=60d27476381a86d34dc044e408779e8a8d5e1d34;hb=aa1a77f38ec5c946f83373ed76759cbc70cf17b5;hp=2c2a28ac3c0ced5afc272f4649fb485c957a8ad1;hpb=7be646c04fa4f7e295f9da45dfbe93da33650e6f;p=debian6500.git diff --git a/Makefile b/Makefile index 2c2a28a..60d2747 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/-.*$$//') @@ -25,7 +25,12 @@ $(ISO): $(TARGET_DEB) masterfile: $(TARGET_DEB) $(TARGET_DEB): + echo $(ISOVER) > master/etc/trc6500_os_version make -C $(MASTERFILE) clean: rm -f $(TARGET_DEB) $(TARGET_ISO) + +version: + echo $(VERSION) $(ISOVER) +.PHONY: $(TARGET_DEB)