From 78e72b99085c8aabdb4382bca7b084f921cd6213 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Tue, 18 Dec 2012 12:04:39 +0400 Subject: Publish CIBS --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..78036fa --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +# For bootstrapping: +cibs-root := . + + +# This is it forever ever: +cibs-inst-root := /usr/share/cibs + +include $(cibs-root)/rules/ips.mk + + +install-stamp: rules-mogrify-stamp + +# Replace $(cibs-root) -> /usr/share/cibs +rules-mogrify-stamp: + mkdir -p mogrified/rules + for r in $(cibs-root)/rules/*.mk; do \ + echo "Mogrifying $$r ..."; \ + sed -e 's,$$(cibs-root),$(cibs-inst-root),g' \ + $$r > mogrified/rules/`basename $$r`; \ + done + touch $@ + +clean:: + rm -rf mogrified + -- cgit v1.2.3