Makefile.am 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 $(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. plugins/Makefile.am \
  27. klish.xsd \
  28. LICENCE \
  29. README.md
  30. include $(top_srcdir)/bin/Makefile.am
  31. include $(top_srcdir)/dbs/Makefile.am
  32. include $(top_srcdir)/docs/Makefile.am
  33. include $(top_srcdir)/examples/Makefile.am
  34. include $(top_srcdir)/klish/Makefile.am
  35. include $(top_srcdir)/plugins/Makefile.am
  36. define CONTROL
  37. PACKAGE: klish
  38. Version: $(PACKAGE_VERSION)
  39. Architecture: amd64
  40. Depends: faux
  41. Maintainer: pkun
  42. Description: The klish is a framework for implementing a CISCO-like CLI on a UNIX systems. It is configurable by XML files
  43. Homepage: http://klish.libcode.org
  44. endef
  45. export CONTROL
  46. deb: all
  47. mkdir -p deb/DEBIAN
  48. echo "$$CONTROL" > deb/DEBIAN/control
  49. DESTDIR=$(shell pwd)/deb make install
  50. dpkg-deb --build deb/ klish_$(PACKAGE_VERSION).deb