-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
39 lines (30 loc) · 884 Bytes
/
Makefile
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
31
32
33
34
35
36
37
38
39
#
# Makefile for rpam
#
all: ext/Rpam/Makefile
(cd ext/Rpam; make)
ext/Rpam/Makefile: ext/Rpam/extconf.rb
(cd ext/Rpam; ruby -rvendor-specific extconf.rb)
install: all
(cd ext/Rpam; make install)
mkdir -p $(DESTDIR)/etc/pam.d
install -c -m 0644 rpam.pam $(DESTDIR)/etc/pam.d/rpam
uninstall:
rm -f $(shell ruby -r rbconfig -e "print Config::CONFIG['vendorarchdir']")/rpam.so
rm -f $(DESTDIR)/etc/pam.d/rpam
doc: ext/Rpam/Makefile
(cd ext/Rpam; rdoc --all --line-numbers --charset=UTF-8 --fmt=html -p --inline-source --op=rdoc)
test: all
(cd test; make)
clean:
(cd ext/Rpam; make clean || exit 0)
(cd test; make clean || exit 0)
distclean: clean
rm -f *~
rm -f ext/Rpam/*~
rm -f ext/Rpam/*o
rm -rf ext/Rpam/rdoc
rm -f ext/Rpam/Makefile
rm -rf package/*bz2
dist: distclean
(cd ..; tar -cj --exclude=rpam/package -f rpam/package/ruby-rpam-1.0.1.tar.bz2 rpam)