From: William Trevor King Date: Wed, 5 Aug 2009 13:41:52 +0000 (-0400) Subject: Fixed EMPTY_DIRS handling in html/Makefile. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=44e4cb1b5fb96109948156a71f0a5ce457ed3bd1;p=course.git Fixed EMPTY_DIRS handling in html/Makefile. --- diff --git a/html/Makefile b/html/Makefile index f76ed3f..e5db222 100644 --- a/html/Makefile +++ b/html/Makefile @@ -1,7 +1,7 @@ HTML_FILES = $(shell echo *.shtml) EMPTY_DIRS = doc source -DEEP_EMPYT_DIRS = doc/exam doc/hwk doc/lab doc/lec doc/rec doc/note -HTML_DIRS = shared php xml $(EMPTY_DIRS) $(DEEP_EMPTY_DIRS) +DEEP_EMPTY_DIRS = doc/exam doc/hwk doc/lab doc/lec doc/rec doc/note +HTML_DIRS = shared php xml $(EMPTY_DIRS) SOURCE_FILES = $(HTML_FILES) $(HTML_DIRS) README .htaccess OTHER_FILES = Makefile DIST_FILES = $(SOURCE_FILES) $(OTHER_FILES) @@ -9,11 +9,12 @@ DIST_FILE = website_framework.tar.gz DIST_DIR = html clean : - rm -rf $(DIST_FILE) $(DIST_DIR) install* + rm -rf $(DIST_FILE) $(DIST_DIR) $(EMPTY_DIRS) install* -$(DIST_FILE) : $(DIST_FILES) $(EMPTY_DIRS) +$(DIST_FILE) : $(DIST_FILES) $(DEEP_EMPTY_DIRS) mkdir $(DIST_DIR) - cp -rp $^ $(DIST_DIR) + echo $(EMPTY_DIRS) + cp -rp $(DIST_FILES) $(DIST_DIR) tar -cozf $@ $(DIST_DIR) rm -rf $(DIST_DIR) @@ -43,3 +44,6 @@ install-source : $(DIST_FILE) install-html # Create empty directories if neccessary (Git doesn't track dirs) $(EMPTY_DIRS) : mkdir $@ + +$(DEEP_EMPTY_DIRS) : $(EMPTY_DIRS) + mkdir $@