From 44e4cb1b5fb96109948156a71f0a5ce457ed3bd1 Mon Sep 17 00:00:00 2001 From: William Trevor King Date: Wed, 5 Aug 2009 09:41:52 -0400 Subject: [PATCH] Fixed EMPTY_DIRS handling in html/Makefile. --- html/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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 $@ -- 2.26.2