summaryrefslogtreecommitdiff
path: root/Makefile
blob: 4d9af289f008ee522d4692ec302d0a184451b964 (plain)
  1. SOURCES = ikiwiki
  2. ikiwiki_VERSION = 2.62.1
  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 content_dummy_da content_dummy_nb
  11. # uncomment this when ikiwiki.setup is configured for the local environment
  12. #CONFIGS = ikiwiki_admin.setup ikiwiki_da_admin.setup ikiwiki_nb_admin.setup ikiwiki.setup ikiwiki_da.setup ikiwiki_nb.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::
  26. ifeq ($(strip $(CONFIGS)),)
  27. $(error Please configure ikiwiki.setup and then uncomment it at the top of the Makefile!)
  28. endif
  29. include make/rules.mk
  30. pot: $(ALL_POTFILES)
  31. po: $(ALL_POFILES)
  32. $(LOCALE_L10NFILES): $(MASTER_L10NFILES)
  33. translations: po $(LOCALE_L10NFILES)
  34. .PHONY: all $(SOURCES) pot po translations install ultraclean