git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6764 67ed7778-7388-44ab-90cf-0a291f65f57c
66 lines
2.0 KiB
Makefile
66 lines
2.0 KiB
Makefile
# 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 makefile.os2 os2mak.inc TESTERS CHANGES
|
|
|
|
SUBDIRS = libgphoto2_port libgphoto2 camlibs tests po packaging doc
|
|
|
|
doc_DATA = AUTHORS COPYING README CHANGES NEWS
|
|
|
|
########################################################################
|
|
# source code check maintenance task
|
|
#
|
|
# This finds code patterns we don't want to have.
|
|
#
|
|
# Use it to get rid of existing patterns and make sure they aren't
|
|
# reintroduced later.
|
|
#
|
|
# The output is meant to be read and interpreted by human programmers.
|
|
|
|
.PHONY: source-code-check
|
|
source-code-check:
|
|
@echo "Finding // comments"
|
|
find . -type f -name '*.[ch]' -exec egrep -H '(^//|[^:]//)' {} \;
|
|
@echo "Finding explicit libintl.h references"
|
|
find . -type f -name '*.[ch]' -exec egrep -H '^#.*include.*libintl\.h' {} \;
|
|
|
|
########################################################################
|
|
# 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 (only if configured with
|
|
# --enable-maintainer-mode).
|
|
#
|
|
# It is not sufficient to have these options somewhere in autogen.sh!
|
|
|
|
ACLOCAL_AMFLAGS = -I libgphoto2_port/m4
|
|
AUTOMAKE_OPTIONS = gnu
|
|
|
|
########################################################################
|
|
# The following rules are only interesting if you want to create
|
|
# distribution packages (as source tarballs or system specific packages)
|
|
|
|
if ENABLE_RPM
|
|
|
|
# create RPM packages
|
|
.PHONY: rpm
|
|
rpm: Makefile
|
|
$(MAKE) dist
|
|
$(MAKE) -C packaging/rpm rpm
|
|
@echo "The RPM packages should now be found in packaging/rpm/RPMS"
|
|
|
|
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
|