summaryrefslogtreecommitdiff
path: root/Makefile
blob: 5bd4e55dd2a8313be9ec8c6c8d5e7951ce5e1c94 (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 nb
  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_admin.setup ikiwiki.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. $(if $(dummy_MODULES),mkdir -p $(dummy_MODULES))
  25. touch init
  26. install::
  27. ifeq ($(strip $(CONFIGS)),)
  28. $(error Please configure ikiwiki.setup and then uncomment it at the top of the Makefile!)
  29. endif
  30. include make/rules.mk
  31. pot: $(ALL_POTFILES)
  32. po: $(ALL_POFILES)
  33. $(LOCALE_L10NFILES): $(MASTER_L10NFILES)
  34. translations: po $(LOCALE_L10NFILES)
  35. .PHONY: all $(SOURCES) pot po translations install ultraclean