summaryrefslogtreecommitdiff
path: root/package/tftpd/tftpd.mk
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2007-05-07 04:01:58 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2007-05-07 04:01:58 +0000
commit69564bb566cbd849d002161aa799eadecd9bbc6e (patch)
tree49e142500d16a613e288a0dbc9fe5c18ccd781ff /package/tftpd/tftpd.mk
parent116acadec915400ab87ea0bd8378b9647a9f5e34 (diff)
Install the default script only if one was not found from the platform.
Diffstat (limited to 'package/tftpd/tftpd.mk')
-rw-r--r--package/tftpd/tftpd.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/package/tftpd/tftpd.mk b/package/tftpd/tftpd.mk
index 25dc98aba..69d15d910 100644
--- a/package/tftpd/tftpd.mk
+++ b/package/tftpd/tftpd.mk
@@ -58,13 +58,15 @@ $(TARGET_DIR)/$(TFTP_HPA_TARGET_BINARY): $(TFTP_HPA_DIR)/$(TFTP_HPA_BINARY)
set -x; \
rm -f $(TARGET_DIR)/$(TFTP_HPA_TARGET_BINARY); \
cp -a $(TFTP_HPA_DIR)/$(TFTP_HPA_BINARY) $(TARGET_DIR)/$(TFTP_HPA_TARGET_BINARY); fi ;
- $(INSTALL) -D -m 0755 package/tftpd/init-tftpd $(TARGET_DIR)/etc/init.d/S80tftpd-hpa
+ @if [ ! -f $(TARGET_DIR)/etc/init.d/S80tftpd-hpa ] ; then \
+ $(INSTALL) -m 0755 -D package/tftpd/init-tftpd $(TARGET_DIR)/etc/init.d/S80tftpd-hpa; \
+ fi;
tftpd: uclibc $(TARGET_DIR)/$(TFTP_HPA_TARGET_BINARY)
tftpd-clean:
- rm -rf $(TARGET_DIR)/etc/init.d/S80tftpd-hpa
- rm -rf $(TARGET_DIR)/usr/sbin/in.tftpd
+ rm -f $(TARGET_DIR)/etc/init.d/S80tftpd-hpa
+ rm -f $(TARGET_DIR)/usr/sbin/in.tftpd
-$(MAKE) -C $(TFTP_HPA_DIR) clean
tftpd-dirclean: