GNUmakefile 571 B

1234567891011121314151617181920212223242526
  1. include ../config.make
  2. TOPLEVEL=../..
  3. EXE_FILES=$(TOPLEVEL)/src/lha.exe
  4. ZIP=$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-win32.zip
  5. $(ZIP): staging
  6. zip -j -r $@ staging/
  7. staging: $(EXE_FILES) $(patsubst %,$(TOPLEVEL)/%,$(DOC_FILES))
  8. rm -rf staging
  9. mkdir staging
  10. cp $(EXE_FILES) staging/
  11. $(STRIP) staging/*.exe
  12. for f in $(DOC_FILES); do \
  13. cp $(TOPLEVEL)/$$f staging/$$f.txt; \
  14. unix2dos staging/$$f.txt; \
  15. done
  16. groff -Thtml -mandoc $(TOPLEVEL)/doc/lha.1 > staging/lha.html
  17. clean:
  18. rm -rf $(ZIP)
  19. rm -rf staging