aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-19 10:08:47 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-19 10:08:47 -0300
commit083a41a2c2cdf7fe5d8299e12c443683c6790a2b (patch)
treeae7ba3bc00ad3efbfb11a4d29c00ed64d9bab409 /Makefile
downloadfirefoxer-083a41a2c2cdf7fe5d8299e12c443683c6790a2b.tar.gz
firefoxer-083a41a2c2cdf7fe5d8299e12c443683c6790a2b.tar.bz2
Initial import
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4f0db17
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,35 @@
+#
+# Global Makefile - https://templater.fluxo.info
+#
+# This Makefile contains basic, common targets and also includes
+# any Makefile.* available in the current folder.
+#
+
+# Set CONTAINER based in what we have available in the system
+# This variable can be user in other, included Makefiles to handle virtualization tasks
+ifeq ($(shell which kvmx > /dev/null && test -s kvmxfile && echo yes), yes)
+ CONTAINER = kvmx
+else ifeq ($(shell which vagrant > /dev/null && test -s Vagrantfile && echo yes), yes)
+ CONTAINER = vagrant
+else ifeq ($(shell which docker > /dev/null && test -s Dockerfile && echo yes), yes)
+ CONTAINER = docker
+else
+ CONTAINER = ''
+endif
+
+# Default action
+default: all
+
+# Process any other Makefile whose filename matches Makefile.*
+# See https://www.gnu.org/software/make/manual/html_node/Include.html
+#
+# Some of those files might even contain local customizations/overrides
+# that can be .gitignore'd, like a Makefile.local for example.
+-include Makefile.*
+
+# Customization examples can be as simple as setting variables:
+#CONTAINER = vagrant
+#CONTAINER = docker
+#DESTDIR ?= vendor
+#HTTP_PORT ="8080"
+#HTTP_SERVER ="ssi_server"