-#########################
-sp := $(sp).x
-dirstack_$(sp) := $(d)
-d := $(dir)
-#########################
-
#
# Define rules and targets for data files.
#
-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))
-
-# TODO: Also need to install yoink.desktop and the pixmap.
-
+pkgdatadir_$d := $(shell find $d -name "*.ac" \
+ -o -name "*.lua" \
+ -o -name "*.gz" \
+ -o -name "*.ogg" \
+ -o -name "*.png") $d/yoinkrc
+# Install resource files to pkgdatadir.
-#######################
--include $(DEPS_$(d))
-d := $(dirstack_$(sp))
-sp := $(basename $(sp))
-#######################
+desktop_$b := $b/yoink.desktop # Install desktop entry file.
+$(desktop_$b): config.sed | $b