summaryrefslogtreecommitdiffstats
path: root/libtdegames/carddecks/Makefile.am
blob: 8effea93a566d2cf1fde4b5e492fe86631dea8a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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