Makefile.am 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ## Process this file with automake to generate Makefile.in
  2. AUTOMAKE_OPTIONS = foreign nostdinc
  3. ACLOCAL_AMFLAGS = -I m4
  4. AM_CPPFLAGS = -I. -I$(top_srcdir)
  5. AM_LD = $(CC)
  6. VERSION_INFO = -version-info $(SONAME_CURRENT):$(SONAME_REVISION):$(SONAME_AGE)
  7. if DEBUG
  8. DEBUG_CFLAGS = -DDEBUG
  9. endif
  10. if TESTC
  11. TESTC_CFLAGS = -DTESTC
  12. endif
  13. AM_CFLAGS = -Wall -Wextra $(DEBUG_CFLAGS) $(TESTC_CFLAGS)
  14. AM_LDFLAGS = -z relro -z now -z defs
  15. bin_PROGRAMS =
  16. lib_LTLIBRARIES =
  17. lib_LIBRARIES =
  18. nobase_include_HEADERS =
  19. noinst_HEADERS =
  20. EXTRA_DIST = \
  21. bin/Makefile.am \
  22. dbs/Makefile.am \
  23. docs/Makefile.am \
  24. examples/Makefile.am \
  25. klish/Makefile.am \
  26. tinyrl/Makefile.am \
  27. plugins/Makefile.am \
  28. klish.xsd \
  29. LICENCE \
  30. README.md \
  31. CHANGES.md
  32. include $(top_srcdir)/bin/Makefile.am
  33. include $(top_srcdir)/dbs/Makefile.am
  34. include $(top_srcdir)/docs/Makefile.am
  35. include $(top_srcdir)/examples/Makefile.am
  36. include $(top_srcdir)/klish/Makefile.am
  37. include $(top_srcdir)/tinyrl/Makefile.am
  38. include $(top_srcdir)/plugins/Makefile.am
  39. define CONTROL
  40. PACKAGE: klish
  41. Version: $(PACKAGE_VERSION)
  42. Architecture: amd64
  43. Depends: faux
  44. Maintainer: pkun
  45. Description: The klish is a framework for implementing a CISCO-like CLI on a UNIX systems. It is configurable by XML files
  46. Homepage: http://klish.libcode.org
  47. endef
  48. export CONTROL
  49. deb: all
  50. mkdir -p deb/DEBIAN
  51. echo "$$CONTROL" > deb/DEBIAN/control
  52. DESTDIR=$(shell pwd)/deb make install
  53. dpkg-deb --build deb/ klish_$(PACKAGE_VERSION).deb