Makefile.am 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. #
  2. # /*
  3. # * Copyright 2021
  4. # *
  5. # * This program is free software: you can redistribute it and/or modify
  6. # * it under the terms of the GNU General Public License as published by
  7. # * the Free Software Foundation, either version 3 of the License, or
  8. # * (at your option) any later version.
  9. # *
  10. # * This program is distributed in the hope that it will be useful,
  11. # * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # * GNU General Public License for more details.
  14. # *
  15. # * You should have received a copy of the GNU General Public License
  16. # * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. # *
  18. # * SPDX-License-Identifier: GPL-3.0+
  19. # * License-Filename: LICENSE
  20. # *
  21. # */
  22. #
  23. #
  24. ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
  25. #
  26. AM_MAKEFLAGS = --no-print-directory
  27. #
  28. AUTOMAKE_OPTIONS = foreign subdir-objects
  29. # dirs with makefile.am
  30. SUBDIRS = . src
  31. #
  32. NULL =
  33. #
  34. EXTRA_DIST = \
  35. $(NULL)
  36. #
  37. MAINTAINERCLEANFILES = \
  38. Makefile \
  39. Makefile.in \
  40. aclocal.m4 \
  41. configure \
  42. config.sub \
  43. config.guess \
  44. config.status \
  45. compile \
  46. depcomp \
  47. install-sh \
  48. ltmain.sh \
  49. missing \
  50. config.h.in \
  51. dmake.output \
  52. dsmake.output \
  53. dsmake.errors \
  54. dsmake.warnings \
  55. autoscan.log \
  56. configure.scan \
  57. config.h.in~ \
  58. config.log \
  59. stamp-h1 \
  60. src/Makefile.in \
  61. src/Makefile \
  62. src/*.i \
  63. src/*.s \
  64. autom4te.cache/* \
  65. m4/*.m4 \
  66. ylwrap \
  67. ID \
  68. $(NULL)
  69. #
  70. cleaner: ## make cleaner then make distclean
  71. make clean
  72. make maintainer-clean-generic
  73. rm -vfr autom4te.cache
  74. rm -vf src/Makefile.in
  75. rm -vfr src/.deps
  76. rm -vfr src/.libs
  77. rm -vf ./libtool
  78. rm -vfr ./m4
  79. rm -vf ./*~
  80. rm -vf ./O1
  81. rm -vf ./O2
  82. rm -vf ./O3
  83. rm -vf ./*.ci
  84. rm -vf ./*.o
  85. rm -vf ./*.dot
  86. rm -vf ./*.gml
  87. rm -vf a-conftest*
  88. # generate git statistics
  89. # %d\t%d number is lines added/deleted in a file
  90. gitlog: ## generate git statistics
  91. git log --numstat >gitlog.txt
  92. # use as sudo debain check install to create R=rpm, S=slackware or D=debian package
  93. # first run autogen.sh and make for a binary
  94. checkinstall: ## create rpm, deb or tgz package using the checkinstall program
  95. checkinstall -D --install=no
  96. .PHONY: help
  97. help:
  98. @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
  99. # end