summaryrefslogtreecommitdiffstats
path: root/libkdegames/carddecks/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'libkdegames/carddecks/Makefile.am')
-rw-r--r--libkdegames/carddecks/Makefile.am24
1 files changed, 24 insertions, 0 deletions
diff --git a/libkdegames/carddecks/Makefile.am b/libkdegames/carddecks/Makefile.am
new file mode 100644
index 00000000..8effea93
--- /dev/null
+++ b/libkdegames/carddecks/Makefile.am
@@ -0,0 +1,24 @@
+DECKDIRS = cards-aisleriot cards-dondorf-whist-b cards-gdkcard-bonded cards-hard-a-port \
+ cards-penguins cards-spaced cards-xskat-french cards-default decks cards-konqi-modern cards-warwick cards-xskat-german
+
+deckdir = $(kde_datadir)/carddecks
+
+uninstall-local:
+ rm -rf $(DESTDIR)$(deckdir)
+
+install-data-local:
+ @$(mkinstalldirs) $(DESTDIR)$(deckdir)
+ @for i in $(DECKDIRS); do \
+ if test -d $(DESTDIR)$(deckdir)/$$i; then \
+ echo "refreshing and removing $$i" ;\
+ rm -rf $(DESTDIR)$(deckdir)/$$i;\
+ fi ;\
+ echo "installing $$i" ;\
+ mkdir $(DESTDIR)$(deckdir)/$$i ;\
+ files=`cd $(srcdir)/$$i && ls -1d *` ;\
+ for f in $$files; do \
+ if test -f $(srcdir)/$$i/$$f; then \
+ $(INSTALL_DATA) $(srcdir)/$$i/$$f $(DESTDIR)$(deckdir)/$$i/$$f ;\
+ fi \
+ done \
+ done