include config.mk SRC = sm.c util.c ${PLUGINS} OBJ = ${SRC:.c=.o} sm: ${OBJ} ${CC} ${LDFLAGS} -o sm ${OBJ} .c.o: ${CC} ${CFLAGS} -c $< ${OBJ}: config.h plugins.h plugins.h: config.mk printf '%s\n' ${PLUGINS:.c=} | awk -f genplugin.awk install: install -dm 0755 ${DESTDIR}${PREFIX}/bin install -m 0755 sm ${DESTDIR}${PREFIX}/bin uninstall: rm -f ${DESTDIR}${PREFIX}/bin/sm clean: rm -f sm plugins.h ${OBJ}