]> gitweb @ CieloNegro.org - autobuild.git/blobdiff - Makefile
Split the script to several files.
[autobuild.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..a85cff8
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+SOURCES = \
+       src/preamble.bash \
+       lib/detectNumCPUs.bash \
+       lib/run.bash \
+       lib/setPath.bash \
+       src/functions.bash \
+       src/resource.bash \
+       src/main.bash \
+       $(NULL)
+
+all: Build
+
+clean:
+       rm -f Build Build.tmp
+
+Build: $(SOURCES)
+       rm -f $@.tmp
+       for i in $(SOURCES); do \
+               cat $$i >> $@.tmp; \
+               echo >> $@.tmp; \
+       done
+       head -q -n -1 $@.tmp > $@
+       rm -f $@.tmp
+
+.PHONY: all clean
\ No newline at end of file