Chameleon

Chameleon Commit Details

Date:2011-12-24 11:53:10 (12 years 4 months ago)
Author:JrCs
Commit:1747
Parents: 1746
Message:Enhanced makefiles - Add a help menu. Do `make help' to display the menu - Update distclean rules
Changes:
M/trunk/Makefile
M/trunk/Make.rules

File differences

trunk/Make.rules
141141
142142
143143
144
144145
145146
146147
147148
149
150
151
152
148153
149154
150155
156
157
158
159
160
161
151162
152163
153164
|| eval $$failcom; \
done
clean-dep:
@if [ -f "$(OBJROOT)/Makedep" ];then echo "\t[RM] $(OBJROOT)/Makedep"; fi
@rm -f $(OBJROOT)/Makedep
FIND_IGNORE := \( -name .git -o -name .svn \) -prune -o -name Cconfig -o
# clean: remove most generated files
clean: clean-recursive clean-dep
distclean: distclean-recursive clean-local clean-dep
@find . $(FIND_IGNORE) \
\( -name '*.orig' -o -name '*.rej' -o -name '*~' \
-o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
-o -name '.*.rej' -o -size 0 \
-o -name '*%' -o -name '.*.cmd' -o -name 'core' \) \
-type f -print | xargs rm -f
clean-local:
trunk/Makefile
9999
100100
101101
102
102
103
103104
104105
105
106
106107
108
109
110
107111
108112
109113
......
111115
112116
113117
114
115
116
117
118
118119
119120
120
121
122
121
123122
124123
125124
126125
127
128
129
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
130141
131142
132143
133144
134145
135146
147
@gzip --best ${DISTFILE}.tar
@mv ${DISTFILE}.tar.gz ${DISTFILE}.tgz
clean-local: clean-pkg-local
clean-local:
@if [ -d "$(SYMROOT)/package" ];then echo "\t[RMDIR] $(SYMROOT)/package"; fi
@if [ -f "$(HEADER_VERSION)" ];then echo "\t[RM] $(HEADER_VERSION)"; fi
@if [ -f "$(SRCROOT)/revision" ];then echo "\t[RM] $(SRCROOT)/revision"; fi
@rm -f $(HEADER_VERSION) $(SRCROOT)/revision
@rm -rf "$(SYMROOT)/package" $(HEADER_VERSION) $(SRCROOT)/revision
AUTOCONF_FILES = $(SRCROOT)/auto.conf $(SRCROOT)/autoconf.h \
$(SRCROOT)/autoconf.inc $(SRCROOT)/.config $(SRCROOT)/.config.old
distclean-local:
@if [ -d "$(OBJROOT)" ];then echo "\t[RMDIR] $(OBJROOT)"; fi
@if [ -d "$(SYMROOT)" ];then echo "\t[RMDIR] $(SYMROOT)"; fi
@if [ -d "$(SRCROOT)/i386/modules/module_includes" ];then \
echo "\t[RMDIR] $(SRCROOT)/i386/modules/module_includes"; \
fi
@if [ -f "$(SRCROOT)/auto.conf" ];then echo "\t[RM] $(SRCROOT)/auto.conf"; fi
@if [ -f "$(SRCROOT)/autoconf.h" ];then echo "\t[RM] $(SRCROOT)/autoconf.h"; fi
@if [ -f "$(SRCROOT)/autoconf.inc" ];then echo "\t[RM] $(SRCROOT)/autoconf.inc"; fi
@for cfg in $(AUTOCONF_FILES); do if [ -f "$${cfg}" ];then echo "\t[RM] $${cfg}"; fi; done
@rm -rf $(OBJROOT) $(SYMROOT) $(DSTROOT) \
$(SRCROOT)/i386/modules/module_includes \
$(SRCROOT)/auto.conf \
$(SRCROOT)/autoconf.h \
$(SRCROOT)/autoconf.inc
$(AUTOCONF_FILES)
pkg installer: all
${SRCROOT}/package/buildpkg.sh ${SYMROOT}/package
clean-pkg-local:
@if [ -d "$(SYMROOT)/package" ];then echo "\t[RMDIR] $(SYMROOT)/package"; fi
@rm -rf "$(SYMROOT)/package"
help:
@echo 'Configuration target:'
@echo ' config - Show configuration menu'
@echo
@echo 'Build targets:'
@echo ' all - Build all targets [DEFAULT]'
@echo ' dist - Build distribution tarball'
@echo ' pkg - Build installer package'
@echo
@echo 'Cleaning targets:'
@echo ' clean - Remove most generated files'
@echo ' distclean - Remove all generated files + config'
#@echo
# @echo 'Build options:'
# @echo 'make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build'
.PHONY: config
.PHONY: clean
.PHONY: image
.PHONY: pkg
.PHONY: installer
.PHONY: help

Archive Download the corresponding diff file

Revision: 1747