message: Add makefile "package" target for release package
  Package includes the executable file.
  Archive is tagged with the most recent git tag, plus modifiers to
  indicate additional commits or dirty (uncommitted) changes. It is also
  tagged with the build configuration, such as target OS and architecture.
diff: @@ -8,6 +8,7 @@ NAS2DDIR := nas2d-core/
  NAS2DINCLUDEDIR := $(NAS2DDIR)
  NAS2DLIBDIR := $(NAS2DDIR)lib/
  NAS2DLIB := $(NAS2DLIBDIR)libnas2d.a
  +PACKAGEDIR := $(BUILDDIR)/package/
  # Determine OS (Linux, Darwin, ...)
  CURRENT_OS := $(shell uname 2>/dev/null || echo Unknown)
  @@ -57,6 +58,19 @@ $(OBJDIR)%.d: ;
  include $(wildcard $(patsubst $(SRCDIR)%.cpp,$(OBJDIR)%.d,$(SRCS)))
  +
  +VERSION = $(shell git describe --tags --dirty)
  +CONFIG = $(TARGET_OS).x64
  +PACKAGE_NAME = $(PACKAGEDIR)ophd-$(VERSION)-$(CONFIG).tar.gz
  +
  +.PHONY: package
  +package: $(PACKAGE_NAME)
  +
  +$(PACKAGE_NAME): $(EXE)
  + @mkdir -p "$(PACKAGEDIR)"
  + tar -czf $(PACKAGE_NAME) $(EXE)
  +
  +
  .PHONY: clean clean-all
  clean:
  -rm -fr $(OBJDIR)
  