diff options
author | David Seifert <soap@gentoo.org> | 2022-03-30 16:51:13 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2022-03-30 16:51:13 +0200 |
commit | 54e3f74beead073e214add9d1b7e51f09a0d19a8 (patch) | |
tree | 021a189f75587a6c28ec90cb02551ff2c5d0a061 /Makefile.am | |
parent | 7a4037bea2fa4f29af07e0328192c2e224add257 (diff) | |
download | libxml2-54e3f74beead073e214add9d1b7e51f09a0d19a8.tar.gz |
Makefile.am: install examples more idiomatically
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/Makefile.am b/Makefile.am index 57768dcd..83ca13c2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1266,27 +1266,8 @@ cmake_DATA = libxml2-config.cmake # # Install the tests program sources as examples # -EXAMPLES_DIR=$(docdir)/examples - -install-data-local: - $(MKDIR_P) $(DESTDIR)$(docdir) - -$(INSTALL) -m 0644 $(srcdir)/Copyright $(DESTDIR)$(docdir) - $(MKDIR_P) $(DESTDIR)$(EXAMPLES_DIR) - -$(INSTALL) -m 0644 $(srcdir)/xmllint.c $(DESTDIR)$(EXAMPLES_DIR) - -$(INSTALL) -m 0644 $(srcdir)/testSAX.c $(DESTDIR)$(EXAMPLES_DIR) - -$(INSTALL) -m 0644 $(srcdir)/testHTML.c $(DESTDIR)$(EXAMPLES_DIR) - -$(INSTALL) -m 0644 $(srcdir)/testXPath.c $(DESTDIR)$(EXAMPLES_DIR) - @echo "If the documentation is installed, please also look at html/examples for more." > $(DESTDIR)$(EXAMPLES_DIR)/README - -uninstall-local: - rm -f $(DESTDIR)$(EXAMPLES_DIR)/README - rm -f $(DESTDIR)$(EXAMPLES_DIR)/testXPath.c - rm -f $(DESTDIR)$(EXAMPLES_DIR)/testHTML.c - rm -f $(DESTDIR)$(EXAMPLES_DIR)/testSAX.c - rm -f $(DESTDIR)$(EXAMPLES_DIR)/xmllint.c - rm -rf $(DESTDIR)$(EXAMPLES_DIR) - rm -f $(DESTDIR)$(docdir)/Copyright - rm -rf $(DESTDIR)$(docdir) +examplesdir = $(docdir)/examples +examples_DATA = xmllint.c testSAX.c testHTML.c testXPath.c tst: tst.c $(CC) $(CFLAGS) -Iinclude -o tst tst.c .libs/libxml2.a -lpthread -lm -lz -llzma |