diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-10-05 20:19:38 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-10-05 20:19:38 +0200 |
commit | 65914bb089349b5f8e7ee061d440f6a5daeb65da (patch) | |
tree | 46b8604e89abf955b8515b24bb4ecfddc1518a80 | |
parent | a7e9f72327b8ac0e1e5e9b8ec6abf8d206ec9547 (diff) | |
parent | 2bd3b6ee0065ecde9bf0e99b626b02668ba2639a (diff) |
Merge branch '_clean' into clean
-rw-r--r-- | Makefile | 18 | ||||
-rw-r--r-- | make/rules.mk | 13 |
2 files changed, 15 insertions, 16 deletions
@@ -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): |