CFILES = $(shell ls *.c)
INSTALL = $(subst .c,.install,$(CFILES))
UNINSTALL = $(subst .c,.uninstall,$(CFILES))

default: $(INSTALL)

%.install: %.c
	gimptool-2.0 --install $<
	touch $@

%.uninstall: %.c
	gimptool-2.0 --uninstall-bin $*
	rm -f $*.install

uninstall: $(UNINSTALL)
