Makefile.am 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. ## Process this file with automake to produce a Makefile.in
  2. AUTOMAKE_OPTIONS = 1.1 foreign
  3. if HAVE_CPLUSPLUS
  4. CPPSUBDIRS = dselect methods
  5. else
  6. CPPSUBDIRS =
  7. endif
  8. SUBDIRS = po intl include lib main dpkg-deb split \
  9. md5sum scripts utils $(CPPSUBDIRS) doc
  10. ## Directory definitions
  11. pkglocalstatedir = $(sharedstatedir)/@PACKAGE@
  12. pkglibdir = $(libdir)/@PACKAGE@
  13. docdir = $(prefix)/doc
  14. pkgdocdir = $(docdir)/@PACKAGE@
  15. ## Various options
  16. CFLAGS = @CFLAGS@ @CWARNS@ -g $(XCFLAGS)
  17. OPTCFLAGS = @OPTCFLAGS@ @CWARNS@ -g $(XCFLAGS)
  18. LDFLAGS = @LDFLAGS@ $(XLDFLAGS)
  19. LIBS = @LIBS@ $(XLIBS)
  20. export CFLAGS OPTCFLAGS LDFLAGS LIBS
  21. ## Automake variables
  22. # Can set this to "build" (wrapper found in debmake)
  23. DEBIAN_BUILD = dpkg-buildpackage
  24. # May want to add -a<arch>?
  25. DEBIAN_FLAGS =
  26. BUILT_SOURCES = version.h config.h
  27. EXTRA_DIST = archtable COPYING INSTALL
  28. CLEANFILES = version.h.new
  29. DISTCLEANFILES = version.h config.h
  30. MAINTAINERCLEANFILES = libtool
  31. DISTDEBFILES = 50dpkg-dev.el changelog control copyright \
  32. dev-README postinst preinst prerm rules \
  33. shlibs shlibs.default.template shlibs.local
  34. MAINTCLEANFILES = Makefile.in aclocal.m4 config.guess \
  35. config.h.in config.sub configure install-sh \
  36. ltconfig ltmain.sh mkinstalldirs ABOUT-NLS \
  37. po/Makefile.in.in po/stamp-cat-id po/cat-id-tbl.c \
  38. po/dpkg.pot stamp-h.in missing
  39. ## Rules
  40. .PHONY: install-data-local uninstall-local dist-hook maintainer-clean-local
  41. uninstall-local:
  42. -for d in $(pkglocalstatedir) $(pkglibdir) $(pkgdocdir); do \
  43. [ -e $$d ] && rmdir $$d; \
  44. done
  45. dist-hook:
  46. $(mkinstalldirs) $(distdir)/debian
  47. set -e; for i in $(DISTDEBFILES); do \
  48. cp -p $(srcdir)/debian/$$i $(distdir)/debian/; \
  49. done
  50. $(mkinstalldirs) $(distdir)/automake
  51. cp -dp $(top_srcdir)/automake/[a-z]* $(distdir)/automake/
  52. maintainer-clean-local:
  53. -cd $(srcdir) && rm -f $(MAINTCLEANFILES)
  54. -$(RM) -r $(srcdir)/intl
  55. ## End of file.