[gimp-help/gimp-help-2-10] web: add optional $BUILD_DIR variable to static Makefile
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-help/gimp-help-2-10] web: add optional $BUILD_DIR variable to static Makefile
- Date: Tue, 22 Feb 2022 19:56:02 +0000 (UTC)
commit 3c18b73306d8234135d203eea42f50e710008831
Author: Jacob Boerema <jgboerema gmail com>
Date: Tue Feb 22 14:55:02 2022 -0500
web: add optional $BUILD_DIR variable to static Makefile
web/Makefile | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/web/Makefile b/web/Makefile
index 2a59573c3..0c96454db 100644
--- a/web/Makefile
+++ b/web/Makefile
@@ -9,31 +9,32 @@ include depends.tabular
autolayout.xml: layout.xml
@echo "-- Creating autolayout file"; \
- $(PROC) --noout -o autolayout.xml $(AUTOLAYOUT) layout.xml
+ $(PROC) --noout -o autolayout.xml $(AUTOLAYOUT) layout.xml
$(MAKE) depends
dirs: autolayout.xml
@echo "-- Creating directories"; \
- mkdir -p html;
- if ! test -e html/Layout; then \
- mkdir html/Layout && cp -r layout/* html/Layout; \
+ mkdir -p $(BUILD_DIR)/html;
+ @if ! test -e $(BUILD_DIR)/html/Layout; then \
+ mkdir $(BUILD_DIR)/html/Layout && cp -r layout/* $(BUILD_DIR)/html/Layout; \
fi
%.html: autolayout.xml
@echo "-- Building " $@; \
$(PROC) $(STYLEDIR)/createHTML.xsl $(filter-out autolayout.xml, $^) $(TIDY) > $@
-
+
built: website
- mv *.html html
+ @echo "-- Copying html to $(BUILD_DIR)/html/"; \
+ mv *.html $(BUILD_DIR)/html/
-style: website
+style: website
@echo "-- Copying stylesheet"; \
- cp style.css html/
+ cp style.css $(BUILD_DIR)/html/
clean: Makefile
@echo "-- Cleaning html and autolayout"
- @rm -rf html; \
+ @rm -rf $(BUILD_DIR)/html; \
rm -f autolayout.xml;\
depends: autolayout.xml
@@ -42,4 +43,3 @@ depends: autolayout.xml
depends.tabular: layout.xml
touch $@
$(MAKE) depends
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]