package.mk 392 B

12345678
  1. include $(INCLUDE_DIR)/package.mk
  2. # Annoyingly, make's shell function replaces all newlines with spaces, so we have to do some escaping work. Yuck.
  3. define GluonCheckSite
  4. [ -z "$$GLUONDIR" ] || sed -e 's/-@/\n/g' -e 's/+@/@/g' <<'END__GLUON__CHECK__SITE' | "$$GLUONDIR"/scripts/check_site.sh
  5. $(shell cat $(1) | sed -ne '1h; 1!H; $$ {g; s/@/+@/g; s/\n/-@/g; p}')
  6. END__GLUON__CHECK__SITE
  7. endef