# Define rules and targets for data files.
#
-TGTS_$(d) := $(DATA_FILES)
-
-# TODO: Also need to install yoink.desktop and the pixmap.
+ASSETS_$(d) := $(shell find $(d) -name "*.lua" \
+ -o -name "*.ogg" \
+ -o -name "*.png" | sed -e 's=^$(d)\(.*\)/.*=&;\1=g') $(d)/yoinkrc;
+DATAFILES := $(DATAFILES) $(ASSETS_$(d))
-TGT_DATA := $(TGT_DATA) $(DATA_FILES)
+# TODO: Also need to install yoink.desktop and the pixmap.
#######################