Skip to content
Snippets Groups Projects
Commit ed3c84d8 authored by sveseli's avatar sveseli
Browse files

fix generic build

parent 92ed9237
No related branches found
No related tags found
No related merge requests found
...@@ -8,16 +8,19 @@ all install: dist ...@@ -8,16 +8,19 @@ all install: dist
clean clean-all clean-install distclean: ant-clean clean clean-all clean-install distclean: ant-clean
.PHONY: propertiesFile
propertiesFile:
if [ ! -f $(BUILD_PROPERTIES_FILE) ]; then cmd="cat $(GENERIC_BUILD_PROPERTIES_FILE) | sed 's?DM_GLASSFISH_DIR?$${DM_GLASSFISH_DIR}?g' > $(BUILD_PROPERTIES_FILE)" && eval $$cmd ; fi
.PHONY: ant-clean .PHONY: ant-clean
ant-clean: ant-clean: propertiesFile
$(ANT) $(ANT_ARGS) clean $(ANT) $(ANT_ARGS) clean
# For compiling from command line, we have to use generic build properties file # For compiling from command line, we have to use generic build properties file
.PHONY: dist .PHONY: dist
dist: dist: propertiesFile
mv $(BUILD_PROPERTIES_FILE) $(BUILD_PROPERTIES_FILE).orig if [ -f $(BUILD_PROPERTIES_FILE) ]; then mv $(BUILD_PROPERTIES_FILE) $(BUILD_PROPERTIES_FILE).orig; fi
cmd="cat $(GENERIC_BUILD_PROPERTIES_FILE) | sed 's?DM_GLASSFISH_DIR?$${DM_GLASSFISH_DIR}?g' > $(BUILD_PROPERTIES_FILE)" && eval $$cmd cmd="cat $(GENERIC_BUILD_PROPERTIES_FILE) | sed 's?DM_GLASSFISH_DIR?$${DM_GLASSFISH_DIR}?g' > $(BUILD_PROPERTIES_FILE)" && eval $$cmd
$(ANT) $(ANT_ARGS) dist $(ANT) $(ANT_ARGS) dist
mv $(BUILD_PROPERTIES_FILE).orig $(BUILD_PROPERTIES_FILE) if [ -f $(BUILD_PROPERTIES_FILE).orig ]; then mv $(BUILD_PROPERTIES_FILE).orig $(BUILD_PROPERTIES_FILE); fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment