summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8b258cf4871cfe6cc50ddb9918e4cca84dc64e46 (plain)
  1. SOURCES = ikiwiki
  2. # Git origin (with capital MOULE replaced or stripped as needed)
  3. ikiwiki_ORIGIN = git://source.jones.dk/ikiwiki_MODULE
  4. # Git branch (with capital FLAVOR and LOCALE replaced or stripped as needed)
  5. ikiwiki_BRANCH = master-FLAVOR-LOCALE
  6. # modules (subproject extension names) used. Expands Git ORIGINs
  7. ikiwiki_MODULES = templates basewiki smiley
  8. # flavors used. Expands Git BRANCHes
  9. #ikiwiki_basewiki_FLAVORS = nonedit
  10. #ikiwiki_templates_FLAVORS = nonedit
  11. # locales used. Expands Git BRANCHes
  12. #ikiwiki_LOCALES = da nb
  13. # gettext-based modules and locales used
  14. ikiwiki_POMODULES = basewiki smiley
  15. ikiwiki_POLOCALES = da
  16. #dummy_MODULES = content_dummy
  17. # uncomment this when ikiwiki.setup is configured for the local environment
  18. #CONFIGS = ikiwiki.setup
  19. # Everything after this is generic
  20. # FIXME: Not all of these are used within templates
  21. masterdir = $(module)
  22. l10ndir = $(module)_l10n/$(locale)
  23. flavordir = $(module)_$(flavor)
  24. flavorl10ndir = $(module)_$(flavor)_l10n/$(locale)
  25. podir = po
  26. all: $(SOURCES)
  27. install::
  28. ifeq ($(strip $(CONFIGS)),)
  29. $(error Please configure ikiwiki.setup and then uncomment it at the top of the Makefile!)
  30. endif
  31. include make/rules.mk
  32. pot: $(ALL_POTFILES)
  33. po: $(ALL_POFILES)
  34. $(LOCALE_L10NFILES): $(MASTER_L10NFILES)
  35. translations: po $(LOCALE_L10NFILES)
  36. .PHONY: all $(SOURCES) pot po translations install ultraclean