mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Be more careful when copying .deps/*.pp files
Some systems won't have them and then there will be lots of error messages.
This commit is contained in:
parent
8aa32ea153
commit
46669bd2e6
@ -111,11 +111,13 @@ endif
|
||||
|
||||
%.o: $(srcdir)%.c
|
||||
$(call mcmd,compile)
|
||||
@-cp .deps/$(*F).pp .deps/$(*F).P; \
|
||||
@-if test -e .deps/$(*F).pp; then \
|
||||
cp .deps/$(*F).pp .deps/$(*F).P; \
|
||||
tr ' ' '\012' < .deps/$(*F).pp \
|
||||
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||
>> .deps/$(*F).P; \
|
||||
rm .deps/$(*F).pp
|
||||
rm .deps/$(*F).pp; \
|
||||
fi
|
||||
|
||||
CLEAN += $(PROG) $(OBJS)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user