Some shells (like Solaris default /bin/sh) doesn't allow -e
option for file existence check. Use -f instead.
for i in $(ALL); do cp -f $$i /usr/local/bin/$$i; done
../src/drivers/build.hostapd:
- @if [ -e ../src/drivers/build.wpa_supplicant ]; then \
+ @if [ -f ../src/drivers/build.wpa_supplicant ]; then \
$(MAKE) -C ../src/drivers clean; \
fi
@touch ../src/drivers/build.hostapd
fi
mkconfig:
- @if [ -e .config ]; then \
+ @if [ -f .config ]; then \
echo '.config exists - did not replace it'; \
exit 1; \
fi
dynamic_eap_methods: $(EAPDYN)
../src/drivers/build.wpa_supplicant:
- @if [ -e ../src/drivers/build.hostapd ]; then \
+ @if [ -f ../src/drivers/build.hostapd ]; then \
$(MAKE) -C ../src/drivers clean; \
fi
@touch ../src/drivers/build.wpa_supplicant