summaryrefslogtreecommitdiffstats
path: root/sample/etc/Makefile
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-05-24 18:38:43 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-05-24 18:38:43 +0800
commit70e53f0e7bdbf7ea97ad1d94313b4e1afe15a850 (patch)
tree49a88487844d1926016691497268a1aa4192e37d /sample/etc/Makefile
parent63a1c2eb76e6b8be02cc239c58d1cbe7adbbb9d4 (diff)
downloadpttbbs-70e53f0e7bdbf7ea97ad1d94313b4e1afe15a850.tar
pttbbs-70e53f0e7bdbf7ea97ad1d94313b4e1afe15a850.tar.gz
pttbbs-70e53f0e7bdbf7ea97ad1d94313b4e1afe15a850.tar.bz2
pttbbs-70e53f0e7bdbf7ea97ad1d94313b4e1afe15a850.tar.lz
pttbbs-70e53f0e7bdbf7ea97ad1d94313b4e1afe15a850.tar.xz
pttbbs-70e53f0e7bdbf7ea97ad1d94313b4e1afe15a850.tar.zst
pttbbs-70e53f0e7bdbf7ea97ad1d94313b4e1afe15a850.zip
- prevent install sample over existing files.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4471 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'sample/etc/Makefile')
-rw-r--r--sample/etc/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/sample/etc/Makefile b/sample/etc/Makefile
index f8087583..6b550c67 100644
--- a/sample/etc/Makefile
+++ b/sample/etc/Makefile
@@ -1,6 +1,7 @@
SUBDIR= chess chickens
BBSHOME?=$(HOME)
TARGET=$(BBSHOME)/etc/
+INSTALLTAG=$(TARGET).installed
FILES= @five Welcome Welcome_birth Welcome_login \
Logout goodbye bad_host today_boring \
register registered registermail registeredmail \
@@ -20,4 +21,5 @@ install_sub:
install: install_sub
install -d $(TARGET)
+ test ! -e $(INSTALLTAG) && touch $(INSTALLTAG)
install -c -m 644 $(FILES) $(TARGET)