Bump version to +svn.
1 # Makefile.in for building crosstool-ng
2 # This file serves as source for the ./configure operation
6 ###############################################################################
7 # Configuration variables
16 MAKE := $(shell which make || type -p make || echo /usr/bin/make)
18 ###############################################################################
21 build: build-bin build-lib build-doc
23 install: build install-bin install-lib install-doc
25 clean: clean-bin clean-lib clean-doc
30 uninstall: uninstall-bin uninstall-lib uninstall-doc
32 ###############################################################################
35 #--------------------------------------
43 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 # If using localy, don't install
71 @if [ "$(LOCAL)" = "1" ]; then \
72 echo "You're using local copy as runtime. You can't install."; \
76 install-bin: install-local $(BINDIR)
77 @install -m 755 ct-ng $(BINDIR)/ct-ng
79 install-lib: install-local $(LIBDIR) install-lib-main install-lib-samples
81 install-lib-main: install-local $(LIBDIR)
82 @for src_dir in config kconfig patches scripts tools; do \
83 tar cf - --exclude=.svn $${src_dir} |(cd $(LIBDIR); tar xf -); \
85 @for src_file in Makefile.steps version; do \
86 install -m 644 $${src_file} $(LIBDIR)/$${src_file}; \
89 # Samples need a little love:
90 # - change every occurence of CT_TOP_DIR to CT_LIB_DIR
91 install-lib-samples: install-local $(LIBDIR) install-lib-main
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-local $(DOCDIR) $(MANDIR)
98 @for doc_file in CREDITS docs/overview.txt; do \
99 install -m 644 "$${doc_file}" $(DOCDIR); \
101 @install -m 644 docs/ct-ng.1 $(MANDIR)
103 $(BINDIR) $(LIBDIR) $(DOCDIR) $(MANDIR)::
104 @install -m 755 -d $@
107 #--------------------------------------
111 @rm -f $(BINDIR)/ct-ng
118 @rm -f $(MANDIR)/ct-ng.1