| 33 |
@echo ' all - Build everything as specified in .config' |
@echo ' all - Build everything as specified in .config' |
| 34 |
@echo ' (default if .config exists)' |
@echo ' (default if .config exists)' |
| 35 |
@echo ' v - Same as "all" but with logging to make.log enabled' |
@echo ' v - Same as "all" but with logging to make.log enabled' |
| 36 |
|
@echo ' targz|tarbz2 - Create a distribution tarball (runs distclean)' |
| 37 |
|
|
| 38 |
|
|
| 39 |
verbose: .prereq_done |
verbose: .prereq_done |
| 57 |
distclean: .prereq_done |
distclean: .prereq_done |
| 58 |
@${GMAKE_INV} distclean |
@${GMAKE_INV} distclean |
| 59 |
@-rm -rf lbin |
@-rm -rf lbin |
| 60 |
@-rm -f make.log .prereq_done |
@-rm -f make.log .prereq_done _pax* freewrt.tar.* |
| 61 |
|
|
| 62 |
image_clean: .prereq_done |
image_clean: .prereq_done |
| 63 |
@${GMAKE_INV} image_clean |
@${GMAKE_INV} image_clean |
| 162 |
@echo '===> Prerequisites checked successfully.' |
@echo '===> Prerequisites checked successfully.' |
| 163 |
@touch $@ |
@touch $@ |
| 164 |
|
|
| 165 |
.PHONY: prereq prereq-noerror |
_tarball: .prereq_done |
| 166 |
|
@rm -f _pax* |
| 167 |
|
@${GMAKE_INV} tools/paxmirabilis-compile |
| 168 |
|
@install -c -m 555 tools_build/paxmirabilis/pax _pax |
| 169 |
|
@${GMAKE_INV} distclean |
| 170 |
|
@-rm -rf lbin |
| 171 |
|
@-rm -f make.log .prereq_done freewrt.tar.* |
| 172 |
|
@find . | \ |
| 173 |
|
grep -v -e '^\.$$' -e '^\./_pax' -e '/\.svn' | \ |
| 174 |
|
sed -e 's&^\./&&' | \ |
| 175 |
|
sort >_pax.flst |
| 176 |
|
|
| 177 |
|
targz: _tarball |
| 178 |
|
@./_pax -w -b 512 -d -M dist -P -t -v -x ustar <_pax.flst | \ |
| 179 |
|
gzip -n9 >freewrt.tar.gz |
| 180 |
|
@rm -f _pax* |
| 181 |
|
|
| 182 |
|
tarbgz2: _tarball |
| 183 |
|
@./_pax -w -b 512 -d -M dist -P -t -v -x ustar <_pax.flst | \ |
| 184 |
|
bzip2 --best >freewrt.tar.bz2 |
| 185 |
|
@rm -f _pax* |
| 186 |
|
|
| 187 |
|
.PHONY: prereq prereq-noerror _tarball targz tarbz2 |