RN rnmake  3.0.0
Help.mk
Go to the documentation of this file.
1 ################################################################################
2 #
3 # Help.mk
4 #
5 ifdef RNMAKE_DOXY
6 /*!
7 \file
8 
9 \brief Prints help message(s) for Rules.mk.
10 
11 \pkgsynopsis
12 RN Make System
13 
14 \pkgfile{Help.mk}
15 
16 \pkgauthor{Robin Knight,robin.knight@roadnarrows.com}
17 
18 \pkgcopyright{2005-2018,RoadNarrows LLC,http://www.roadnarrows.com}
19 
20 \license{MIT}
21 
22 \EulaBegin
23 \EulaEnd
24 
25 \cond RNMAKE_DOXY
26  */
27 endif
28 #
29 ################################################################################
30 
31 _HELP_MK = 1
32 
33 $(info rnmake - RoadNarrows Make System Help)
34 
35 archlist = $(subst $(rnmake)/Arch/Arch.,,$(basename $(wildcard $(rnmake)/Arch/Arch.*.mk)))
36 
37 .PHONY: help
38 help: help-usage help-arch help-targets help-install help-tarballs \
39  help-dpkg help-other help-help
40 
41 help-usage:
42  @echo " + Synopsis ($@)"
43  @echo "usage: make [arch=<arch>] [color=<scheme>] [MAKEARGS] [target]"
44  @echo " <arch> - <rnmake>/arch/Arch.<arch>.mk architecture make file."
45  @echo " <scheme> - Color scheme. Default: default, off=no color, ..."
46  @echo " <target> - rnmake target goal."
47 
48 help-arch:
49  @echo ""
50  @echo " + Supported Target Platform Architectures ($@)"
51  @echo $(sort $(archlist))
52 
53 help-targets:
54  @echo ""
55  @echo " + Standard Targets ($@)"
56  @echo "all - (default) makes the distribution [sub]package(s)"
57  @echo "subdirs - makes all subdirectories from current directory"
58  @echo "<subdir> - makes subdirectory <subdir> from current directory"
59  @echo "libs - makes all libraries in current directory"
60  @echo "<lib> - makes library <lib> in current directory"
61  @echo "pgms - makes all programs in current directory"
62  @echo "<pgm> - makes program <pgm> in current directory"
63  @echo "documents - makes documentation"
64  @echo "install - installs the distribution"
65  @echo "tarballs - makes package binary, source, and documentation tarballs"
66  @echo "deps - makes source dependencies"
67  @echo "clean - deletes generated intermediate files"
68  @echo "distclean - cleans plus deletes distribution and local made files"
69 
70 help-install:
71  @echo ""
72  @echo " + Install Specific Targets ($@)"
73  @echo "install - installs package distribution files"
74  @echo "install-bin - installs package distribution executables"
75  @echo "install-lib - installs package distribution libraries"
76  @echo "install-includes - installs package distribution API headers"
77  @echo "install-docs - installs package distribution documentation"
78  @echo "install-share - installs package distribution system share files"
79  @echo "install-etc - installs package distribution configuration files"
80 
81 help-tarballs:
82  @echo ""
83  @echo " + Tarball Specific Targets ($@)"
84  @echo "tarballs - makes package binary, source, and documentation tarballs"
85  @echo "tarball-bin - makes package executables tarball"
86  @echo "tarball-doc - makes documentation tarball"
87  @echo "tarball-src - makes source tarball"
88 
89 help-dpkg:
90  @echo ""
91  @echo " + Debian Package Specific Targets ($@)"
92  @echo "deb-pkgs - makes all debian packages for an architecture"
93  @echo "deb-pkg-dev - makes debian development package"
94  @echo "deb-pkg-src - makes debian source package"
95  @echo "deb-pkg-doc - makes debian documentation package"
96 
97 help-other:
98  @echo ""
99  @echo " + Other Targets ($@)"
100  @echo "<src>.o - makes object from <src>.{c|cxx}"
101  @echo "<src>.ii - makes post CPP processed source from <src>.{c|cxx}"
102 
103 help-help:
104  @echo ""
105  @echo " + Help Targets ($@)"
106  @echo "help - prints full rnmake help"
107  @echo "help-usage - prints rnmake usage"
108  @echo "help-arch - prints list of rnmake supported architectures"
109  @echo "help-targets - prints rnmake standard targets"
110  @echo "help-install - prints rnmake install specific targets"
111  @echo "help-tarballs - prints rnmake tarball specific targets"
112  @echo "help-other - prints rnmake make other targets (debugging)"
113  @echo "help-help - prints this help text"
114 
115 ifdef RNMAKE_DOXY
116 /*! \endcond RNMAKE_DOXY */
117 endif