makefiles-garage/imgtools/imgcheck/Makefile
changeset 1 820b22e13ff1
parent 0 37428ad74fc2
equal deleted inserted replaced
0:37428ad74fc2 1:820b22e13ff1
    51 $(srcs): fixes 
    51 $(srcs): fixes 
    52 
    52 
    53 $(prereqs): $(global_prereqs)
    53 $(prereqs): $(global_prereqs)
    54 	$(MAKE) -C $(EPOCROOT)/build $@
    54 	$(MAKE) -C $(EPOCROOT)/build $@
    55 
    55 
    56 $(exe): $(objs) $(prereqs)
    56 $(objs): $(prereqs)
       
    57 
       
    58 $(exe): $(objs)
    57 	$(CC) -o $@ $(objs) $(LDFLAGS)
    59 	$(CC) -o $@ $(objs) $(LDFLAGS)
    58 
    60 
    59 clean: remove_fixes
    61 clean: remove_fixes
    60 	rm -f $(objs) $(exe)
    62 	rm -f $(objs) $(exe)
    61 	for file in $(subdirs); do $(MAKE) -C $$file clean; done
    63 	for file in $(subdirs); do $(MAKE) -C $$file clean; done
    62 
    64 
    63 fixes: $(fixbackups)
    65 fixes:: $(fixbackups)
    64 	
    66 	
    65 inc/exceptionimplementation.h.original:
    67 inc/exceptionimplementation.h.original:
    66 	cp $(basename $@) $@ && \
    68 	cp $(basename $@) $@ && \
    67 	sed -e 's|ofstream iLogStream;|Ofstream iLogStream;|g' -i $(basename $@)
    69 	sed -e 's|ofstream iLogStream;|Ofstream iLogStream;|g' -i $(basename $@)
    68 
    70 
    79 	cp $(basename $@) $@ && \
    81 	cp $(basename $@) $@ && \
    80 	sed -e 's|ifstream xslSourceHandle;|Ifstream xslSourceHandle;|g' \
    82 	sed -e 's|ifstream xslSourceHandle;|Ifstream xslSourceHandle;|g' \
    81 		-e 's|ofstream xslDestHandle|Ofstream xslDestHandle|g' -i $(basename $@)
    83 		-e 's|ofstream xslDestHandle|Ofstream xslDestHandle|g' -i $(basename $@)
    82 
    84 
    83 remove_fixes: 
    85 remove_fixes: 
    84 	for file in $(fixbackups); do if [ -f $$file ]; then mv -f $$file $${file%original}; fi; done
    86 	for file in $(fixbackups); do if [ -f $$file ]; then mv -f $$file $${file%\.original}; fi; done
    85 
    87