#!/usr/bin/make -f VERSION = "0.0.4" PROG_SCRIPTS = pct-scanner-script LIB_SCRIPTS = pct-scanner-script-process ALL_SCRIPTS = $(PROG_SCRIPTS) $(LIB_SCRIPTS) PROG_MAN = pct-scanner-script.1 ALL_MAN = $(PROG_MAN) PROG_CONF = pct-scanner-script.conf PROG_CONF_EXTRA = 50configuration ALL_CONF = $(PROG_CONF) $(PROG_CONF_EXTRA) DIST_FILES = readme DIST_FILES += todo DIST_FILES += notes DIST_FILES += changelog DIST_FILES += makefile ALL_FILES = $(ALL_SCRIPTS) $(ALL_MAN) $(ALL_CONF) ALL_FILES += $(DIST_FILES) all: for SCRIPT in $(ALL_SCRIPTS) ; \ do \ sed -i "/^version=/s/v.*/version=\"$(VERSION)\"/" $$SCRIPT ; \ done .phony: all