-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile.am
63 lines (56 loc) · 1.74 KB
/
Makefile.am
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
lib_LTLIBRARIES=libredblack.la
include_HEADERS=redblack.h
libredblack_la_SOURCES=redblack.c
libredblack_la_LDFLAGS= -version-info @REDBLACK_LIB_CURRENT@:@REDBLACK_LIB_REVISION@:@REDBLACK_LIB_AGE@
man_MANS=rbdelete.3 rbdestroy.3 rbfind.3 rbinit.3 rbsearch.3 rblookup.3 \
rbwalk.3 rbopenlist.3 rbreadlist.3 rbcloselist.3 rbgen.1
EXTRA_DIST=autogen.sh @[email protected] @[email protected] $(man_MANS) example4.rb
if USE_RBGEN
bin_SCRIPTS=rbgen
endif
pkgdata_DATA=redblack.c redblack.h
noinst_PROGRAMS=example example1 example2 example3 example4
example_SOURCES=example.c
example_LDADD=libredblack.la
example1_SOURCES=example1.c
example1_LDADD=libredblack.la
example2_SOURCES=example2.c
example2_LDADD=libredblack.la
example3_SOURCES=example3.c
example3_LDADD=libredblack.la
nodist_example4_SOURCES=example4.c
example4_LDADD=
CLEANFILES=example4.c
if USE_RBGEN
SUFFIXES = .rb
.rb.c:
./rbgen $<
endif
rpms: distcheck rpms-nocheck
rpms-nocheck:
rpm -ta @PACKAGE@-@[email protected]
cp /usr/src/redhat/SRPMS/@PACKAGE@-@VERSION@-*.rpm .
cp /usr/src/redhat/RPMS/*/@PACKAGE@-*@VERSION@-*.*.rpm .
release:
man2html < rbinit.3 > rbinit.3.html
man2html < rbopenlist.3 > rbopenlist.3.html
ln redblack.html index.html
scp @PACKAGE@-@[email protected] \
@PACKAGE@-@VERSION@-*.src.rpm \
@PACKAGE@-*@VERSION@-*.*.rpm \
[email protected]:/home/groups/ftp/pub/@PACKAGE@
scp rbinit.3.html \
rbopenlist.3.html \
index.html \
redblack.png \
[email protected]:/home/groups/@PACKAGE@/htdocs
rm -f index.html
example4.c: example4.rb
## Create a dummy example4.c in case rbgen isn't present
echo 'int main() { return(0); }' > example4.c
if USE_RBGEN
./rbgen $<
endif
writelock:
chmod a-w $(HEADERS) $(SOURCES) $(MANS) \
AUTHORS NEWS README COPYING INSTALL