Makefile.am 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. bin_PROGRAMS =
  15. lib_LTLIBRARIES =
  16. lib_LIBRARIES =
  17. nobase_include_HEADERS =
  18. noinst_HEADERS =
  19. EXTRA_DIST =
  20. klish/Makefile.am \
  21. dbs/Makefile.am \
  22. bin/Makefile.am
  23. include $(top_srcdir)/klish/Makefile.am
  24. include $(top_srcdir)/dbs/Makefile.am
  25. include $(top_srcdir)/bin/Makefile.am
  26. define CONTROL
  27. PACKAGE: klish
  28. Version: $(PACKAGE_VERSION)
  29. Architecture: amd64
  30. Depends: faux
  31. Maintainer: pkun
  32. Description: The klish is a framework for implementing a CISCO-like CLI on a UNIX systems. It is configurable by XML files
  33. Homepage: http://klish.libcode.org
  34. endef
  35. export CONTROL
  36. deb: all
  37. mkdir -p deb/DEBIAN
  38. echo "$$CONTROL" > deb/DEBIAN/control
  39. DESTDIR=$(shell pwd)/deb make install
  40. dpkg-deb --build deb/ klish_$(PACKAGE_VERSION).deb