mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -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
564b67883b
commit
42771c1c64
@ -72,11 +72,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
|
||||
|
||||
ifdef SUBDIRS-yes
|
||||
SUBDIRS += $(SUBDIRS-yes)
|
||||
|
Loading…
x
Reference in New Issue
Block a user