summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJasmin Jessich <jasmin@anw.at>2017-05-21 00:26:28 +0200
committerJasmin Jessich <jasmin@anw.at>2017-05-21 00:26:28 +0200
commitc2761cb4a8e93434470c1c6cac15b950413e1add (patch)
tree70af42a2c569454adacd678d66c0b2ee1a004b0a /Makefile
parenteba2ad612cc25fcfcd7347f360b5506ba8921835 (diff)
downloadvdr-plugin-live-c2761cb4a8e93434470c1c6cac15b950413e1add.tar.gz
vdr-plugin-live-c2761cb4a8e93434470c1c6cac15b950413e1add.tar.bz2
More Makefile adaptations
- Generate dependency files ".*.edep" out of the "*.ecpp" files and include them in pages/Makefile. - Allow building of "<subdir>/*.o" from the top makefile as target. - .gitignore will ignore the new dependency files ".*.edep".
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a972dc8..4121913 100644
--- a/Makefile
+++ b/Makefile
@@ -95,6 +95,15 @@ SUBDIRS := $(WEB_DIR_PAGES) $(WEB_DIR_CSS) $(WEB_DIR_JAVA)
all: lib i18n
### Implicit rules:
+$(WEB_DIR_PAGES)/%.o: $(WEB_DIR_PAGES)/%.cpp $(WEB_DIR_PAGES)/%.ecpp
+ $(MAKE) -C $(WEB_DIR_PAGES) PLUGINFEATURES="$(PLUGINFEATURES)" $(notdir $@)
+
+$(WEB_DIR_CSS)/%.o:
+ $(MAKE) -C $(WEB_DIR_CSS) PLUGINFEATURES="$(PLUGINFEATURES)" $(notdir $@)
+
+$(WEB_DIR_JAVA)/%.o:
+ $(MAKE) -C $(WEB_DIR_JAVA) PLUGINFEATURES="$(PLUGINFEATURES)" $(notdir $@)
+
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $(DEFINES) $(PLUGINFEATURES) $(INCLUDES) $<
@@ -194,5 +203,6 @@ clean: subdirs
.PRECIOUS: $(I18Npo)
+.PHONY: FORCE
FORCE: