summaryrefslogtreecommitdiff
path: root/Makefile
blob: 711fd9c84deba12811af5bbde945009ad99d7a47 (plain)
  1. SOURCES = ikiwiki
  2. ikiwiki_VERSION = 3.20100704
  3. # modules (subproject extension names) used. Expands SOURCES
  4. ikiwiki_MODULES = templates basewiki smiley directives
  5. # locales used. Expands SOURCES
  6. ikiwiki_LOCALES = da
  7. # gettext-based modules and locales used
  8. #ikiwiki_POMODULES = basewiki smiley directives
  9. #ikiwiki_POLOCALES = da
  10. dummy_MODULES = content_dummy
  11. # uncomment this when ikiwiki.setup is configured for the local environment
  12. #CONFIGS = ikiwiki_da_admin.setup ikiwiki_da.setup
  13. # Everything after this is generic
  14. # FIXME: Not all of these are used within templates
  15. masterdir = $(module)
  16. l10ndir = $(module)_l10n/$(locale)
  17. flavordir = $(module)_$(flavor)
  18. flavorl10ndir = $(module)_$(flavor)_l10n/$(locale)
  19. podir = po
  20. all: init $(SOURCES)
  21. init:
  22. git submodule init
  23. git submodule update
  24. touch init
  25. install:: init $(dummy_MODULES)
  26. ifeq ($(strip $(CONFIGS)),)
  27. $(error Please configure ikiwiki.setup and then uncomment it at the top of the Makefile!)
  28. endif
  29. content_dummy_master:
  30. mkdir $@
  31. cd $@ && git init
  32. echo .ikiwiki > $@/.gitignore
  33. cd $@ && git add .gitignore
  34. cd $@ && git commit -m "Ignore .ikiwiki."
  35. $(dummy_MODULES): content_dummy_master
  36. git clone $< $@
  37. clean::
  38. rm -rf content_dummy_master $(dummy_MODULES)
  39. include make/rules.mk
  40. pot: $(ALL_POTFILES)
  41. po: $(ALL_POFILES)
  42. $(LOCALE_L10NFILES): $(MASTER_L10NFILES)
  43. translations: po $(LOCALE_L10NFILES)
  44. .PHONY: all $(SOURCES) pot po translations install clean