Skip to content

Commit

Permalink
Automaticallly checking the compling when install; Check file existin…
Browse files Browse the repository at this point in the history
…g when uninstall
  • Loading branch information
yeasy committed Oct 31, 2014
1 parent b828d9d commit 967cb43
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ all:
clean:
for i in $(DIRS); do cd $$i;make clean;cd ..; done

install:
install: all
#mkdir for tsar
mkdir -p /usr/local/tsar/modules
mkdir -p /etc/tsar
Expand Down Expand Up @@ -42,7 +42,9 @@ uninstall:
#rm tsardevel
rm -f /usr/bin/tsardevel
#backup configure file
mv /etc/tsar/tsar.conf /etc/tsar/tsar.conf.rpmsave
if [ -f /etc/tsar/tsar.conf ]; then mv /etc/tsar/tsar.conf /etc/tsar/tsar.conf.rpmsave; fi
#backup the log data file
if [ -f /var/log/tsar.data ]; then mv /var/log/tsar.data /var/log/tsar.data.bak; fi

tags:
ctags -R
Expand Down

0 comments on commit 967cb43

Please sign in to comment.