summaryrefslogtreecommitdiff
path: root/Makefile
blob: 42d4135a76589706978a405f563a7dbd4a7ca134 (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_da.setup ikiwiki_nb.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. 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