summaryrefslogtreecommitdiff
path: root/Makefile
blob: 410cb3c28031f8f53e45c0f500d29d505e1cac9c (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.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. allinit $(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 -"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. translationspo $(LOCALE_L10NFILES)
  44. .PHONYall $(SOURCESpot po translations install clean