diff --git a/examples/c/Makefile.am b/examples/c/Makefile.am index 2edaa43f1060bde4c7ea74a4fdd4bc0350b5f65a..99ee332fc54cfdc47ba6d74dad42ed0c582c0c80 100644 --- a/examples/c/Makefile.am +++ b/examples/c/Makefile.am @@ -1,2 +1,2 @@ -EXTRA_DIST = bookshelf.xml example.c Makefile.example +EXTRA_DIST = bookshelf.xml example.c Makefile.example output diff --git a/examples/c/Makefile.example b/examples/c/Makefile.example index 1f6c16bf7123e6d7a3f5f984d4149817e3806711..d94f26511a00cc7d3b4cd309fbaaf1aa76bf3fa7 100644 --- a/examples/c/Makefile.example +++ b/examples/c/Makefile.example @@ -6,5 +6,5 @@ PROGS=document_new document_new_minimal document_new_from_string document_new_fr all: $(PROGS) clean: - rm $(PROGS) *.o *~ || true + @rm $(PROGS) *.o *~ \#*\# output/*.xml 2>/dev/null || true diff --git a/examples/c/document_save_to_path.c b/examples/c/document_save_to_path.c index e16eddc26c0a084309845feb3983c916806cacd3..13d6ffde65a9f2d69c736f578fffe152811f78e2 100644 --- a/examples/c/document_save_to_path.c +++ b/examples/c/document_save_to_path.c @@ -6,7 +6,7 @@ int main () { doc = gxml_document_new_from_path ("bookshelf.xml"); - gxml_document_save_to_path (doc, "bookshelf2.xml"); + gxml_document_save_to_path (doc, "output/bookshelf_save_to_path.xml"); g_object_unref (doc); diff --git a/examples/c/document_save_to_stream.c b/examples/c/document_save_to_stream.c index 873cf9e9fb03e14dbdb1ab97f3016dd8077d9ffb..50c757c800910de4cb16d884b24b9af20bf8406e 100644 --- a/examples/c/document_save_to_stream.c +++ b/examples/c/document_save_to_stream.c @@ -9,7 +9,7 @@ int main () { doc = gxml_document_new_from_path ("bookshelf.xml"); - outfile = g_file_new_for_path ("bookshelf3.xml"); + outfile = g_file_new_for_path ("output/bookshelf_save_to_stream.xml"); outstream = g_file_replace (outfile, NULL, FALSE, G_FILE_CREATE_REPLACE_DESTINATION, can, NULL); gxml_document_save_to_stream (doc, G_OUTPUT_STREAM (outstream), can);