mars-nwe/doc/old/Makefile

102 lines
2.4 KiB
Makefile
Raw Normal View History

2011-11-13 00:38:56 +01:00
# Makefile mars_nwe: 10-Feb-96
2011-11-13 00:38:56 +01:00
2011-11-13 00:38:55 +01:00
VPATH=
2011-11-13 00:38:56 +01:00
2011-11-13 00:38:56 +01:00
.EXPORT_ALL_VARIABLES:
# defaults, can be overwritten in mk.li
V_VPATH=..
OBJDIR=obj
2011-11-13 00:38:56 +01:00
all: rmeflag mk.li config.h nw.ini
2011-11-13 00:38:55 +01:00
@if [ -r .eflag ] ; then \
echo ""; \
echo "********************************************************"; \
cat .eflag; rm -f .eflag; \
echo "";\
echo "Please make your changes and run make again"; \
echo "********************************************************"; \
echo "";\
2011-11-13 00:38:56 +01:00
echo ""; else ./mk.li && (\
2011-11-13 00:38:55 +01:00
if [ -r .mk.notes ] ; then echo "" ; \
echo ""; \
echo "********************************************************" ; \
echo ""; \
2011-11-13 00:38:57 +01:00
cat .mk.notes; rm -f .mk.notes ; \
2011-11-13 00:38:55 +01:00
echo ""; \
echo "********************************************************" ; \
echo ""; echo "" ; fi ) fi
2011-11-13 00:38:56 +01:00
routed:
./mk.li $@
2011-11-13 00:38:55 +01:00
install:
./mk.li $@
2011-11-13 00:38:57 +01:00
reboot:
./mk.li $@
2011-11-13 00:38:55 +01:00
install_ini: nw.ini
./mk.li $@
clean: mk.li nw.ini
./mk.li $@
2011-11-13 00:38:57 +01:00
rm -f .mk.notes
rm -f .eflag
2011-11-13 00:38:55 +01:00
distrib: mk.li nw.ini
./mk.li $@
2011-11-13 00:38:57 +01:00
distrib_bin: mk.li nw.ini
./mk.li $@
2011-11-13 00:38:59 +01:00
bintgz:
./mk.li $@
2011-11-13 00:38:56 +01:00
diff:
./mk.li $@
2011-11-13 00:38:58 +01:00
showconf:
./mk.li -s $@
2011-11-13 00:38:55 +01:00
mk.li: examples/mk.li
@if [ -r $@ ] ; then \
cp -f $@ $@.org && ( \
echo "********************************************************"; \
echo "";\
echo "saved: $@ -> $@.org, there is a new examples/$@"; \
echo "";\
echo "********************************************************"; \
echo "" ) ; fi
@ echo ""
@ echo ""
2011-11-13 00:38:56 +01:00
@- cp -i examples/$@ .
2011-11-13 00:38:55 +01:00
@ touch -c $@
@ echo ""
@ echo "********************************************************"
@ echo ""
@ echo "perhaps $@ is new and you need to edit it."
@ echo ""
@ echo "********************************************************"
@ echo ""
@ echo "" > .eflag
config.h: examples/config.h
@if [ -r $@ ] ; then echo "note:examples/$@ is newer then $@" >> .eflag ;\
echo "$@ will be touched now" >> .eflag; touch -c $@ ; \
else cp examples/$@ . ; \
echo "$@ created (from examples/$@) Please edit $@" >> .eflag;\
echo "and change it to your requirements." >> .eflag ; fi
rmeflag:
2011-11-13 00:38:56 +01:00
@- rm -f .eflag
2011-11-13 00:38:55 +01:00
nw.ini: examples/nw.ini
2011-11-13 00:38:57 +01:00
@rm -f .mk.notes
2011-11-13 00:38:55 +01:00
@if [ -r $@ ] ; then echo "NOTE:examples/$@ is newer then $@" > .mk.notes ; \
echo "please compare examples/$@ with $@" >> .mk.notes; \
echo "make the changes you need and touch $@" >> .mk.notes; \
2011-11-13 00:38:56 +01:00
else cp examples/$@ . ; \
2011-11-13 00:38:55 +01:00
echo "$@ created (from examples/$@) Please edit $@" > .mk.notes;\
echo "and change it to your requirements." >> .mk.notes ; fi