copy_files = common.sh.in libexecs = $(filter-out librelib,$(wildcard libre*)) # include common.sh in libs explicitly, because it might not exist yet # when the wildcard is performed libs = $(sort $(wildcard *.sh) common.sh) include ../../common.mk # Build ############################################################## common.sh: %: %.in %.top Makefile @echo "GEN $@" @{ \ cat '$*.top' && \ echo && \ sed -r -e '/encoding problem/d;/LANG=/d' -e 's/mesg=\$$(.)/mesg="$$(_ "$$\1")"/' '$*.in' && \ echo && \ cat '$*.bottom' && \ :; } > '$@'