Read tests/ddb/README.ddb if you want to play with it. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9104 67ed7778-7388-44ab-90cf-0a291f65f57c
56 lines
1.2 KiB
Makefile
56 lines
1.2 KiB
Makefile
#if HAVE_FLEX_BISON
|
|
flexbison_PROGRAMS_ = test-ddb
|
|
flexbison_check_SCRIPTS_ = check-ddb.sh
|
|
flexbison_BUILT_SOURCES_ = ddb-txt.tab.c ddb-txt.tab.h ddb-txt.yy.c
|
|
flexbison_CLEANFILES_ = ddb-txt.output
|
|
#endif
|
|
|
|
check_PROGRAMS = $(flexbison_PROGRAMS_)
|
|
|
|
check_SCRIPTS = \
|
|
$(flexbison_check_SCRIPTS_)
|
|
|
|
EXTRA_DIST = \
|
|
README.ddb \
|
|
check-ddb.in \
|
|
ddb-txt.l \
|
|
ddb-txt.y
|
|
|
|
TESTS = $(check_SCRIPTS)
|
|
|
|
BUILT_SOURCES = $(flexbison_BUILT_SOURCES_)
|
|
CLEANFILES = $(check_SCRIPTS) $(BUILT_SOURCES) $(flexbison_CLEANFILES_) gp2ddb.txt
|
|
|
|
#if HAVE_FLEX_BISON
|
|
test_ddb_SOURCES = $(flexbison_BUILT_SOURCES_) ddb-common.c ddb-common.h
|
|
test_ddb_LDADD = \
|
|
-lfl \
|
|
$(top_builddir)/libgphoto2/libgphoto2.la \
|
|
$(top_builddir)/libgphoto2_port/libgphoto2_port/libgphoto2_port.la \
|
|
$(LIBEXIF_LIBS) \
|
|
$(INTLLIBS)
|
|
|
|
%.yy.c: %.l %.tab.h
|
|
$(FLEX) -o$@ $<
|
|
|
|
%.tab.h: %.tab.c
|
|
%.tab.c %.tab.h: %.y
|
|
$(BISON) -v $<
|
|
#endif
|
|
|
|
clean-local:
|
|
rm -f *.s *.i
|
|
|
|
%.sh: %.in
|
|
@echo "Creating $@"
|
|
@sed \
|
|
-e 's|@top_builddir\@|$(top_builddir)|g' \
|
|
-e 's|@camlibdir\@|$(camlibdir)|g' \
|
|
< "$<" > "$@"
|
|
@chmod +x $@
|
|
|
|
check-ddb.sh: check-ddb.in $(top_builddir)/packaging/generic/print-camera-list
|
|
|
|
$(top_builddir)/packaging/generic/print-camera-list:
|
|
cd $(top_builddir)/packaging/generic && $(MAKE) print-camera-list
|