Makefile 700 B

123456789101112131415161718192021222324
  1. VERSION=1.5
  2. ARCHIVE=arexxd-$(VERSION).tar.gz
  3. CC=gcc
  4. LD=gcc
  5. CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 -DAREXXD_VERSION='"$(VERSION)"'
  6. LDLIBS=-lusb-1.0 -lm -lrrd
  7. all: arexxd
  8. clean:
  9. rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
  10. rm -f arexxd
  11. install: all
  12. install arexxd /usr/local/sbin/
  13. release:
  14. git tag v$(VERSION)
  15. git push --tags
  16. git archive --format=tar --prefix=arexxd-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
  17. scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
  18. ssh jw "cd www && bin/release-prog arexxd $(VERSION)"
  19. mv $(ARCHIVE) ~/archives/mj/