GNUmakefile 457 B

1234567891011121314151617181920212223242526272829
  1. # Tab Complete
  2. #
  3. # Douglas Thrift
  4. #
  5. # GNUmakefile
  6. ifeq ($(OS),Windows_NT)
  7. SED := C:\cygwin\bin\sed.exe
  8. ZIP := C:\cygwin\bin\zip.exe
  9. RM_F := del /F /A
  10. else
  11. SED := gsed
  12. ZIP := zip
  13. RM_F := rm -f
  14. endif
  15. files := install.rdf bootstrap.js
  16. version := $(shell $(SED) -re 's|^.*<em:version>(.+)</em:version>|\1|p;d' install.rdf)
  17. xpi := tabcomplete-$(version).xpi
  18. .PHONY: all clean
  19. all: $(xpi)
  20. $(xpi): $(files)
  21. $(ZIP) -ll $(xpi) $(files)
  22. clean:
  23. -$(RM_F) *.xpi