You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
631 B

  1. SUBDIRS = src
  2. TARGET = rufus
  3. TAGVER = $(shell git log --oneline | wc -l)
  4. SEDCMD = s/^\([ \t]*\)Version="\([0-9]*\)\.\([0-9]*\)\.[0-9]*\.\([0-9]*\)"\(.*\)/\1Version="\2.\3.@@TAGVER@@.\4"\5/
  5. # This step produces the UPX compressed and signed releases that are made available for public download
  6. # NB: UPX v3.09 or later is needed for LZMA compression (http://upx.sourceforge.net/)
  7. release: all
  8. @mv src/$(TARGET)$(EXEEXT) .
  9. @sleep 1
  10. @$(STRIP) $(TARGET)$(EXEEXT)
  11. @upx --lzma --best $(TARGET)$(EXEEXT)
  12. @mv $(TARGET)$(EXEEXT) $(TARGET)-$(VERSION)$(SUFFIX)$(EXEEXT)
  13. @cmd.exe //c _sign.cmd $(TARGET)-$(VERSION)$(SUFFIX)$(EXEEXT)