File: Makefile.am

package info (click to toggle)
calf 0.90.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,960 kB
  • sloc: cpp: 37,527; xml: 12,698; ansic: 6,322; python: 1,537; makefile: 207; javascript: 159; lex: 51; sh: 25
file content (26 lines) | stat: -rw-r--r-- 1,138 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SRCDIRS = icons/LV2 
SUBDIRS = $(SRCDIRS)
STYLES = $(wildcard $(srcdir)/styles/*)
EXTRA_DIST = $(wildcard $(srcdir)/styles) $(wildcard $(srcdir)/strips) $(wildcard $(srcdir)/gui)

install-data-hook:
	$(top_builddir)/src/calfmakerdf -m gui -p $(DESTDIR)$(pkgdatadir)
	install -d -m 755 $(DESTDIR)$(pkgdatadir)/styles/
	for f in ${STYLES}; do \
		sn=`basename $${f}` ; \
		install -d -m 755 $(DESTDIR)$(pkgdatadir)/styles/$${sn} ; \
		install -c -m 644 $(srcdir)/styles/$${sn}/*.png $(DESTDIR)$(pkgdatadir)/styles/$${sn}/ ; \
		sed 's#@guidatadir@#$(pkgdatadir)/styles/'$${sn}'#g' "$${f}"/gtk.rc.in >"$(DESTDIR)$(pkgdatadir)/styles/$${sn}/gtk.rc" ; \
	done
	install -d -m 755 $(DESTDIR)$(pkgdatadir)/gui
	install -c -m 644 $(srcdir)/gui/*.xml $(DESTDIR)$(pkgdatadir)/gui/
	install -d -m 755 $(DESTDIR)$(pkgdatadir)/strips
	install -c -m 644 $(srcdir)/strips/*.xml $(DESTDIR)$(pkgdatadir)/strips/

uninstall-hook:
	rm -f $(DESTDIR)$(pkgdatadir)/*.rc
	rm -rf $(DESTDIR)$(pkgdatadir)/gui
	rm -rf $(DESTDIR)$(pkgdatadir)/strips
	rm -rf $(DESTDIR)$(pkgdatadir)/icons
	rm -rf $(DESTDIR)$(pkgdatadir)/styles
	rm -r $(DESTDIR)$(pkgdatadir) || true