Re-order help entries in populate.
1 # Makefile.in for building crosstool-NG
2 # This file serves as source for the ./configure operation
6 ###############################################################################
7 # Configuration variables
15 MAKE := $(shell which make || type -p make || echo /usr/bin/make)
17 ###############################################################################
20 build: build-bin build-lib build-doc
22 install: build install-bin install-lib install-doc
24 clean: clean-bin clean-lib clean-doc
29 uninstall: uninstall-bin uninstall-lib uninstall-doc
31 ###############################################################################
34 #--------------------------------------
42 build-doc: docs/ct-ng.1
46 @sed -r -e 's,@@CT_MAKE@@,$(MAKE),g;' \
47 -e 's,@@CT_BINDIR@@,$(BINDIR),g;' \
48 -e 's,@@CT_LIBDIR@@,$(LIBDIR),g;' \
49 -e 's,@@CT_DOCDIR@@,$(DOCDIR),g;' \
50 -e 's,@@CT_MANDIR@@,$(MANDIR),g;' \
51 -e 's,@@CT_VERSION@@,$(VERSION),g;' \
52 -e 's,@@CT_DATE@@,$(DATE),g;' \
55 #--------------------------------------
66 #--------------------------------------
69 install-bin: install-lib $(BINDIR)
71 @install -m 755 ct-ng $(BINDIR)/ct-ng
72 @echo " LN ct-ng.extract-config"
73 @ln -sf $(LIBDIR)/tools/ct-ng.extract-config $(BINDIR)/ct-ng.extract-config
75 install-lib: $(LIBDIR) install-lib-main install-lib-samples
77 install-lib-main: $(LIBDIR)
78 @for src_dir in config kconfig patches scripts tools; do \
79 echo " INST $${src_dir}/"; \
80 tar cf - --exclude=.svn $${src_dir} |(cd $(LIBDIR); tar xf -); \
82 @rm -f $(LIBDIR)/tools/addToolVersion.sh
83 @for src_file in Makefile.steps version; do \
84 echo " INST $${src_file}"; \
85 install -m 644 $${src_file} $(LIBDIR)/$${src_file}; \
88 # Samples need a little love:
89 # - change every occurence of CT_TOP_DIR to CT_LIB_DIR
90 install-lib-samples: $(LIBDIR) install-lib-main
91 @echo " INST samples/"
92 @tar cf - --exclude=.svn samples |(cd $(LIBDIR); tar xf -)
93 @for samp_file in $(LIBDIR)/samples/*/crosstool.config; do \
94 sed -r -i -e 's,\$$\{CT_TOP_DIR\},\$$\{CT_LIB_DIR\},g;' $${samp_file}; \
97 install-doc: install-man $(DOCDIR)
98 @for doc_file in CREDITS docs/overview.txt; do \
99 echo " INST $${doc_file}"; \
100 install -m 644 "$${doc_file}" $(DOCDIR); \
103 install-man: $(MANDIR)
104 @echo " INST ct-ng.1"
105 @install -m 644 docs/ct-ng.1 $(MANDIR)
107 $(BINDIR) $(LIBDIR) $(DOCDIR) $(MANDIR)::
109 @install -m 755 -d $@
112 #--------------------------------------
116 @rm -f $(BINDIR)/ct-ng
117 @rm -f $(BINDIR)/ct-ng.extract-config
124 @rm -f $(MANDIR)/ct-ng.1