summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: b6ce5cb0d7e24e432f5b8e948102fabcb4497ea8 (plain)
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
69
70
71
# Process this file with automake to generate a GNU Makefile

########################################################################
# put file lists and special compile rules here

bin_SCRIPTS = gphoto2-config

EXTRA_DIST = HACKING MAINTAINERS acconfig.h autogen.sh \
	makefile.os2 os2mak.inc TESTERS

SUBDIRS = 			\
	libgphoto2_port 	\
	intl 			\
	libgphoto2 		\
	camlibs 		\
	frontends 		\
	tests			\
	po			\
	packaging		\
	doc

docdir = @DOC_DIR@
doc_DATA = AUTHORS COPYING README

########################################################################
# The following default options for aclocal and automake
# are required in the top level Makefile.am for the automatic 
# re-building of the build system files. 
#
# It is not sufficient to have these options somewhere in autogen.sh!

# default options for aclocal
ACLOCAL_AMFLAGS = -I $(top_srcdir)/libgphoto2_port/m4
# default options for automake - only required in the top Makefile.am
AUTOMAKE_OPTIONS = gnu

########################################################################
# The following rules are only interesting if you want to create
# distribution packages (as source tarballs or system specific packages)

# create .tar.bz2 distribution package for convenience if the
# $(TAR) on this system supports it. else do nothing.
dist-hook:
	if [ "x${CDPATH}" != "x" ]; then \
		echo "You have set CDPATH. If make dist fails, try to unset CDPATH."; \
	fi
	-$(MAKE) dist-bzip2

dist-bzip2:
	-chmod -R a+r $(distdir)
	-$(TAR) chojf $(distdir).tar.bz2 $(distdir)

if ENABLE_RPM

# create RPM packages
.PHONY: rpm
rpm: Makefile
	$(MAKE) dist
	$(MAKE) -C packaging/rpm rpm

endif

if MAINTAINER_MODE

# add CVS tags - used only by the project maintainer to tag the files of a
# released version
.PHONY: cvs-tags
cvs-tags: Makefile
	@echo cvs tag "@PACKAGE@-$$(echo '@VERSION@' | sed 's/\./_/g')"

endif