aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU-AD\carlsoan <carlsoan@gophersjos7275.ad.uc.edu>2018-01-06 16:38:03 -0500
committerU-AD\carlsoan <carlsoan@gophersjos7275.ad.uc.edu>2018-01-06 16:38:03 -0500
commita12f4af863c476b31f9ad86def3422b1296d26ef (patch)
tree1fd135b008a29b9a0543fc80518084a4397fa5ba
parent2253cfc6834f4a7ce1e88618fc7ecd9e6bb27d31 (diff)
added updatebin make option
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1f79924..930e49a 100644
--- a/Makefile
+++ b/Makefile
@@ -13,15 +13,18 @@ all:
@echo ""
@echo "Use 'make clean' to clear build environment"
-install: tmp/xinetd
+install: tmp/xinetd.ok build/quickstat build/quickstat.sh
cp build/quickstat /etc/xinetd.d
cp build/quickstat.sh /usr/sbin
echo -e "#Adding quickstat service" >> /etc/services
echo -e "quickstat\t$(call getsetting,tmp/port.txt,PORT)/tcp" >> /etc/services
echo -e "quickstat\t$(call getsetting,tmp/port.txt,PORT)/udp" >> /etc/services
-tmp/xinetd: tmp
- @[[ -n "$$(which xinetd)" ]] && touch tmp/xinetd
+updatebin: tmp/xinetd.ok build/quickstat.sh
+ cp build/quickstat.sh /usr/sbin
+
+tmp/xinetd.ok: tmp
+ @[[ -n "$$(which xinetd)" ]] && touch tmp/xinetd.ok
setup: build/quickstat build/quickstat.sh