diff options
author | Loïc Hoguin <[email protected]> | 2014-05-28 22:07:54 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-05-28 22:17:51 +0200 |
commit | 58b99e7f457bc056e91d2d1721cbb65fcd517afe (patch) | |
tree | 16f20657dcb4f1713ff3bfc02de875b85e7875c4 /Makefile | |
parent | b47d3f4c3e097aa28a08f72931d2ce8c50039681 (diff) | |
download | erlang.mk-58b99e7f457bc056e91d2d1721cbb65fcd517afe.tar.gz erlang.mk-58b99e7f457bc056e91d2d1721cbb65fcd517afe.tar.bz2 erlang.mk-58b99e7f457bc056e91d2d1721cbb65fcd517afe.zip |
Cut erlang.mk into many small components
* The build.config says what gets into the generated erlang.mk.
* The default erlang.mk in the repository hasn't changed yet.
* Clean targets were separated into "clean" and "distclean".
* The "help" target was added to display some help message.
I probably broke a couple things...
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7d6d977 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +# Copyright (c) 2013-2014, Loïc Hoguin <[email protected]> +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +BUILD_CONFIG_FILE ?= $(CURDIR)/build.config +BUILD_CONFIG = $(shell sed "s/\#.*//" $(BUILD_CONFIG_FILE)) + +ERLANG_MK = erlang.mk + +.PHONY: all + +all: + awk 'FNR==1 && NR!=1{print ""}1' $(patsubst %,%.mk,$(BUILD_CONFIG)) > $(ERLANG_MK) |