%install
strip src/ctsim
strip tools/ctsimtext
-rm -f /usr/local/bin/if1
-rm -f /usr/local/bin/if2
-rm -f /usr/local/bin/ifexport
-rm -f /usr/local/bin/ifinfo
-rm -f /usr/local/bin/phm2if
-rm -f /usr/local/bin/phm2pj
-rm -f /usr/local/bin/pj2if
-rm -f /usr/local/bin/pjinfo
-rm -f /usr/local/bin/pjrec
-rm -f /usr/local/bin/ctsim
-rm -f /usr/local/bin/ctsimtext
-rm -rf /usr/local/man/ctsim.htb
install -s -m 755 -o 0 -g 0 src/ctsim /usr/bin/ctsim
install -s -m 755 -o 0 -g 0 tools/ctsimtext /usr/bin/ctsimtext
install -m 755 -o 0 -g 0 tools/sample-ctsim.sh /usr/bin/sample-ctsim.sh
+mkdir -p /usr/share/ctsim
install -m 755 -o 0 -g 0 doc/ctsim.htb /usr/share/ctsim/ctsim.htb
ln -sf ctsimtext /usr/bin/if1
ln -sf ctsimtext /usr/bin/if2