znc_buildmod := $(shell which znc-buildmod) znc_modules := $(patsubst %,%.so,smart_ison trout) .PHONY: all install clean all: $(znc_modules) %.so: %.cpp $(znc_buildmod) znc-buildmod $< install: $(znc_modules) install -pv $(znc_modules) ~/.znc/modules clean: rm -fv *.so