File: Makefile.plugin

package info (click to toggle)
libpeas 1.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,328 kB
  • sloc: sh: 11,723; ansic: 11,717; makefile: 938; python: 54; xml: 27
file content (27 lines) | stat: -rw-r--r-- 820 bytes parent folder | download
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
27
# Because some files are needed by plugins
# in the buildir like .plugin files this
# copies them to the builddir if they don't
# exist so that make distcheck works.
all-local:
	@test -z "$(noinst_PLUGIN)" || \
	 for plugin in $(noinst_PLUGIN) ; do \
	   if test -e $(srcdir)/$$plugin ; then \
	     if ! test -e $(builddir)/$$plugin ; then \
	       cp -p $(srcdir)/$$plugin $(builddir)/ ; \
	     fi ; \
	   fi ; \
	 done

clean-local:
	@rm -f gschemas.compiled ; \
	 test -z "$(noinst_PLUGIN)" || \
	 test $(srcdir) = $(builddir) || \
	 for plugin in $(noinst_PLUGIN) ; do \
	   if test -e $(builddir)/$$plugin ; then \
	     rm -f $(builddir)/$$plugin ; \
	     # hack to cleanup .pyc files \
	     if test -e $(builddir)/$${plugin}c ; then \
	       rm -f $(builddir)/$${plugin}c ; \
	     fi ; \
	   fi ; \
	 done