make makes no fun

This commit is contained in:
lars 2005-05-13 20:39:10 +00:00
parent 63bfa37e2c
commit 49b451e59f

View file

@ -28,10 +28,13 @@ all: $(HTML_FILES)
# copy the created files to the destination directory (usually outside of this directory tree) # copy the created files to the destination directory (usually outside of this directory tree)
install: $(TARGET_FILES) install: $(TARGET_FILES)
@[ -z "$(CCD_BUILD_DIR)" ] && echo "CCD_BUILD_DIR must be defined! (this should be done by the parent Makefile)" >&2 && false @if [ -z "$(CCD_BUILD_DIR)" ] ; \
then echo "CCD_BUILD_DIR must be defined! (this should be done by the parent Makefile)" >&2 ; \
false ; \
fi
@if [ ! -e "$(CCD_BUILD_DIR)" ] ; \ @if [ ! -e "$(CCD_BUILD_DIR)" ] ; \
then echo "CCD_BUILD_DIR ($(CCD_BUILD_DIR)) does not exist!" ; \ then echo "CCD_BUILD_DIR ($(CCD_BUILD_DIR)) does not exist!" ; \
exit 1 ; \ false ; \
fi fi
@cp -r _output/* "$(CCD_BUILD_DIR)/doku" @cp -r _output/* "$(CCD_BUILD_DIR)/doku"