comparison lib/swig/swigwin-2.0.11/CCache/Makefile.in @ 1899:b3009adc0e2f

Adding swig, gitignore, hgignore
author Nomad
date Mon, 21 Oct 2013 10:42:27 +0200
parents
children
comparison
equal deleted inserted replaced
1867:eb580660bbbb 1899:b3009adc0e2f
1 datarootdir = @datarootdir@
2 srcdir=@srcdir@
3 VPATH=@srcdir@
4
5 prefix=@prefix@
6 exec_prefix=@exec_prefix@
7 bindir=@bindir@
8 mandir=@mandir@
9 INSTALLCMD=@INSTALL@
10 PACKAGE_NAME=@PACKAGE_NAME@
11 # Soft link test can be skipped on systems that don't support soft linking
12 NOSOFTLINKSTEST=
13
14 CC=@CC@
15 CFLAGS=@CFLAGS@ -I.
16 SWIG=swig
17 SWIG_LIB=../../Lib
18 EXEEXT=@EXEEXT@
19
20 # Use standard autoconf approach to transform executable name using --program-prefix and --program-suffix
21 transform = @program_transform_name@
22
23 LIBS= @LIBS@
24 OBJS= ccache.o mdfour.o hash.o execute.o util.o args.o stats.o \
25 cleanup.o snprintf.o unify.o
26 HEADERS = ccache.h mdfour.h
27
28 all: $(PACKAGE_NAME)$(EXEEXT)
29
30 # Note that HTML documentation is actually generated and used from the main SWIG documentation Makefile
31 docs: $(PACKAGE_NAME).1 web/ccache-man.html
32
33 $(PACKAGE_NAME)$(EXEEXT): $(OBJS) $(HEADERS)
34 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
35
36 $(PACKAGE_NAME).1: ccache.yo
37 -yodl2man -o $(PACKAGE_NAME).1 ccache.yo
38
39 web/ccache-man.html: ccache.yo
40 yodl2html -o web/ccache-man.html ccache.yo
41
42 install: $(PACKAGE_NAME)$(EXEEXT) $(PACKAGE_NAME).1
43 @echo "Installing $(PACKAGE_NAME)"
44 @echo "Installing $(DESTDIR)${bindir}/`echo $(PACKAGE_NAME) | sed '$(transform)'`$(EXEEXT)"
45 ${INSTALLCMD} -d $(DESTDIR)${bindir}
46 ${INSTALLCMD} -m 755 $(PACKAGE_NAME)$(EXEEXT) $(DESTDIR)${bindir}/`echo $(PACKAGE_NAME) | sed '$(transform)'`$(EXEEXT)
47 @echo "Installing $(DESTDIR)${mandir}/man1/`echo $(PACKAGE_NAME) | sed '$(transform)'`.1"
48 ${INSTALLCMD} -d $(DESTDIR)${mandir}/man1
49 ${INSTALLCMD} -m 644 ${srcdir}/$(PACKAGE_NAME).1 $(DESTDIR)${mandir}/man1/`echo $(PACKAGE_NAME) | sed '$(transform)'`.1
50
51 uninstall: $(PACKAGE_NAME)$(EXEEXT) $(PACKAGE_NAME).1
52 rm -f $(DESTDIR)${bindir}/`echo $(PACKAGE_NAME) | sed '$(transform)'`$(EXEEXT)
53 rm -f $(DESTDIR)${mandir}/man1/`echo $(PACKAGE_NAME) | sed '$(transform)'`.1
54
55 clean:
56 /bin/rm -f $(OBJS) *~ $(PACKAGE_NAME)$(EXEEXT)
57
58 check : test
59
60 test: test.sh
61 SWIG_LIB='$(SWIG_LIB)' PATH=../..:$$PATH SWIG='$(SWIG)' CC='$(CC)' NOSOFTLINKSTEST='$(NOSOFTLINKSTEST)' ./test.sh
62
63 check: test
64
65 distclean: clean
66 /bin/rm -f Makefile config.h config.sub config.log build-stamp config.status ccache_swig_config.h
67 /bin/rm -rf autom4te.cache
68
69 maintainer-clean: distclean
70 /bin/rm -f $(PACKAGE_NAME).1 web/ccache-man.html
71
72
73 # FIXME: To fix this, test.sh needs to be able to take ccache from the
74 # installed prefix, not from the source dir.
75 installcheck:
76 @echo "WARNING! This is not really \"installcheck\" yet."
77 $(MAKE) check