Makefile 715 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. VERSION = v0.1
  2. NAME = willows
  3. # Toolchains/Compilers
  4. PANDOC = pandoc
  5. PANDOC_FLAGS = -f markdown -t html
  6. # Utility programs
  7. RM_RF = rm -rf
  8. MKDIR = mkdir
  9. COPY = cp -r
  10. TARBALL = tar -cvf
  11. # Directories and files
  12. PREFIX = /usr/local
  13. PROJROOT = $(shell pwd)
  14. OUTDIR = $(PROJROOT)/output
  15. JUNK = $(shell cat .gitignore)
  16. all: $(OUTDIR) installer
  17. build: all
  18. rebuild: clean build
  19. $(OUTDIR):
  20. $(MKDIR) $(OUTDIR)
  21. clean:
  22. $(RM_RF) $(JUNK)
  23. dist: rebuild
  24. $(MKDIR) willows/
  25. $(COPY) $(OUTDIR)/* willows/
  26. $(COPY) resources/* willows/
  27. $(COPY) LICENSE.txt willows/
  28. $(COPY) Readme.md willows/
  29. $(TARBALL) $(OUTDIR)/$(NAME)-$(VERSION).tar.gz willows/
  30. $(RM_RF) willows/
  31. include src/installer/installer.mk