File: Makefile.am

package info (click to toggle)
cppunit 1.8.0-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,664 kB
  • ctags: 1,779
  • sloc: cpp: 10,756; sh: 7,005; makefile: 362; ansic: 266
file content (68 lines) | stat: -rw-r--r-- 1,911 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
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
64
65
66
67
68
AUTOMAKE_OPTIONS = 1.4
ACLOCAL_AMFLAGS = -I config

SUBDIRS = src include examples doc

bin_SCRIPTS = cppunit-config
man_MANS = cppunit-config.1


EXTRA_DIST = BUGS INSTALL-unix INSTALL-WIN32.txt	\
	cppunit-config.1				                \
	cppunit.m4 cppunit.spec.in cppunit.spec	        \
	$(m4sources)					                \
	contrib/msvc/CppUnit.WWTpl 			            \
	contrib/msvc/readme.txt                         \
	contrib/msvc/AddingUnitTestMethod.dsm           \
	src/CppUnitLibraries.dsw

m4sources = \
	config/ac_create_prefix_config_h.m4		\
	config/ac_cxx_have_sstream.m4			\
	config/ac_cxx_have_strstream.m4			\
	config/ac_cxx_namespaces.m4			\
	config/ac_cxx_rtti.m4				\
	config/ac_cxx_string_compare_string_first.m4	\
	config/bb_enable_doxygen.m4

m4datadir = $(datadir)/aclocal
m4data_DATA = cppunit.m4

# Not sure what is creating the timestamp file.
# The so_locations file only happens on IRIX.
DISTCLEANFILES = config/stamp-h1 so_locations

dist-hook:
	cp -dpR $(top_srcdir)/src/msvc6 $(distdir)/src
	cp -dpR $(top_srcdir)/src/qttestrunner $(distdir)/src
	cp -dpR $(top_srcdir)/include/msvc6 $(distdir)/include 
	cp -dpR $(top_srcdir)/examples/msvc6 $(distdir)/examples
	find $(distdir) -name CVS | xargs rm -rf
	perl -pi -e 's/\n/\r\n/g' `find $(distdir) -name '*.ds?'` \
		$(distdir)/contrib/msvc/*			  \
		$(distdir)/INSTALL-WIN32.txt

.PHONY: release snapshot rpm docs doc-dist

release:
	rm -rf .deps */.deps
	$(MAKE) distcheck

snapshot:
	$(MAKE) dist distdir=$(PACKAGE)-`date +%Y-%m-%d`

rpm: dist
	rpm -ta $(PACKAGE)-$(VERSION).tar.gz
	mv -f /usr/src/redhat/SRPMS/$(PACKAGE)-$(VERSION)-*.rpm .
	mv -f /usr/src/redhat/RPMS/*/$(PACKAGE)-$(VERSION)-*.rpm .
	mv -f /usr/src/redhat/RPMS/*/$(PACKAGE)-doc-$(VERSION)-*.rpm .

debian:
	chmod a+x debian/rules
	dpkg-buildpackage -rfakeroot -sa -us -uc -tc 

doc-dist:
	$(MAKE) -C doc doc-dist
	mv -f doc/$(PACKAGE)-docs-$(VERSION).tar.gz .