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/-.*$$//')
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)