diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
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 + |