diff options
author | Havoc Pennington <hp@redhat.com> | 2003-05-02 21:35:09 +0000 |
---|---|---|
committer | Havoc Pennington <hp@pobox.com> | 2003-05-02 21:35:09 +0000 |
commit | 7bb06d10749e9e7cfcdd7e81bcba51e9b30a4185 (patch) | |
tree | 7ff0e2d25f70fa5720f5665f575a230dfb0b26bd /src/Makefile.am | |
parent | f89f7608c1fd54eced4ce406c22c471d4ff86411 (diff) | |
download | desktop-file-utils-7bb06d10749e9e7cfcdd7e81bcba51e9b30a4185.tar.gz |
use basedir stuff stored on root node instead of dealing with it in this
2003-05-02 Havoc Pennington <hp@redhat.com>
* src/menu-process.c: use basedir stuff stored on root node
instead of dealing with it in this file
* src/menu-parser.c (menu_load): set basedir
* src/menu-layout.c (menu_node_copy_one): copy fields in MenuNode
"subclasses"
(menu_node_get_basedir): new
(menu_node_get_content_as_path): new
* configure.in: add more compiler warnings, and --enable-tests
* src/menu-layout.c (dfu_test_menu_nodes): start setting up unit
test stuff
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 8db5bfd..e218eec 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,6 +1,20 @@ INCLUDES=$(DESKTOP_FILE_UTILS_CFLAGS) -DDATADIR="\"$(datadir)\"" +## note that TESTS has special meaning (stuff to use in make check) +## so if adding tests not to be run in make check, don't add them to +## TESTS +if DFU_BUILD_TESTS +TESTS_ENVIRONMENT= +TESTS=dfu-test +else +TESTS= +endif + +## we use noinst_PROGRAMS not check_PROGRAMS so that we build +## even when not doing "make check" +noinst_PROGRAMS=$(TESTS) + bin_PROGRAMS=desktop-file-validate desktop-file-install desktop-menu-tool desktop_file_validate_SOURCES= \ @@ -38,6 +52,18 @@ desktop_menu_tool_SOURCES= \ vfolder-query.c \ vfolder-query.h +dfu_test_SOURCES= \ + canonicalize.c \ + canonicalize.h \ + menu-entries.c \ + menu-entries.h \ + menu-layout.c \ + menu-layout.h \ + menu-parser.c \ + menu-parser.h \ + dfu-test.c + desktop_file_validate_LDADD=$(DESKTOP_FILE_UTILS_LIBS) desktop_file_install_LDADD= $(DESKTOP_FILE_UTILS_LIBS) -desktop_menu_tool_LDADD=$(DESKTOP_FILE_UTILS_LIBS)
\ No newline at end of file +desktop_menu_tool_LDADD=$(DESKTOP_FILE_UTILS_LIBS) +dfu_test_LDADD=$(DESKTOP_FILE_UTILS_LIBS) |