summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-05 20:19:47 +0200
committerJonas Smedegaard <dr@jones.dk>2010-10-05 20:19:47 +0200
commit1aefa4ac68b7430a54684ae087c491af325ccb21 (patch)
tree9a00fd97c80dc357467d50a98eb1466f7ca52298
parentaf428d86bb03e50ba388d257dc8f7b6b7d2bc447 (diff)
parent6c6798bb09353e5d84301e84f0db10e2b388b9ef (diff)
Merge branch '_multilang' into allinone-multilang
-rw-r--r--Makefile18
-rw-r--r--make/rules.mk13
2 files changed, 15 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index cbab240..3c8348d 100644
--- a/Makefile
+++ b/Makefile
@@ -28,14 +28,26 @@ all: init $(SOURCES)
init:
git submodule init
git submodule update
- $(if $(dummy_MODULES),mkdir -p $(dummy_MODULES))
touch init
-install:: init
+install:: init $(dummy_MODULES)
ifeq ($(strip $(CONFIGS)),)
$(error Please configure ikiwiki.setup and then uncomment it at the top of the Makefile!)
endif
+content_dummy_master:
+ mkdir $@
+ cd $@ && git init
+ echo .ikiwiki > $@/.gitignore
+ cd $@ && git add .gitignore
+ cd $@ && git commit -m "Ignore .ikiwiki."
+
+$(dummy_MODULES): content_dummy_master
+ clone $< $@
+
+clean::
+ rm -rf content_dummy_master $(dummy_MODULES)
+
include make/rules.mk
pot: $(ALL_POTFILES)
@@ -43,4 +55,4 @@ po: $(ALL_POFILES)
$(LOCALE_L10NFILES): $(MASTER_L10NFILES)
translations: po $(LOCALE_L10NFILES)
-.PHONY: all $(SOURCES) pot po translations install ultraclean
+.PHONY: all $(SOURCES) pot po translations install clean
diff --git a/make/rules.mk b/make/rules.mk
index 226d37d..850dcef 100644
--- a/make/rules.mk
+++ b/make/rules.mk
@@ -76,19 +76,6 @@ endif
-# 1:dummydir
-define DUMMYMODULE_template
-$(1):
- mkdir -p $$@
-
-# WARNING: this may wipe unrelated files too!
-ultraclean::
- rm -rf "$(1)"
-endef
-$(foreach module,$(dummy_MODULES),$(eval $(call DUMMYMODULE_template,$(masterdir))))
-
-
-
# 1:configfile
define CONFIG_template
$(1):