summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-05 20:19:35 +0200
committerJonas Smedegaard <dr@jones.dk>2010-10-05 20:19:35 +0200
commit5983a4fa3bae2a13b4f2298adaeb6e6b4d8ac6b8 (patch)
treedb4c75d240bba3b5e3ab9e6d247e3acd77db5ea0 /Makefile
parent802242b8cd72274b1759838c10d183fdea884f44 (diff)
parent738bd7e3aa6af3b9469a0d707470b1395da4c5ba (diff)
Merge branch 'master' into _scs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c0c4165..a1bb03e 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