File: Makefile.am

package info (click to toggle)
apparmor 4.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 30,096 kB
  • sloc: ansic: 24,943; python: 24,914; cpp: 9,074; sh: 8,166; yacc: 2,061; makefile: 1,923; lex: 1,215; pascal: 1,147; perl: 1,033; ruby: 365; lisp: 282; exp: 250; java: 212; xml: 159
file content (30 lines) | stat: -rw-r--r-- 816 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
27
28
29
30
if HAVE_RUBY

EXTRA_DIST =            extconf.rb LibAppArmor_wrap.c examples/*.rb
noinst_DATA =           LibAppArmor.so

LibAppArmor_wrap.c : $(srcdir)/../SWIG/libapparmor.i
	$(SWIG) -ruby -module LibAppArmor -I$(top_srcdir)/include -o $@ $(srcdir)/../SWIG/libapparmor.i

MOSTLYCLEANFILES=LibAppArmor_wrap.c

Makefile.ruby: extconf.rb
	mv Makefile Makefile.bak
	PREFIX=$(prefix) $(RUBY) $< --with-LibAppArmor-include=$(top_srcdir)/include
	mv Makefile.bak Makefile

LibAppArmor.so: LibAppArmor_wrap.c Makefile.ruby
	$(MAKE) -fMakefile.ruby

install-exec-local: Makefile.ruby
	$(MAKE) -fMakefile.ruby install

#uninstall
#./lib/ruby/site_ruby/1.8/i686-linux/LibAppArmor.so

clean-local:
	if test -f Makefile.ruby; then $(MAKE) -fMakefile.ruby clean; fi
	rm -f Makefile.ruby Makefile.bak
	rm -f *.o *.so *.log

endif