OSDN Git Service

stop using trunk or dist directory in rec10 project.
[rec10/rec10-git.git] / tstools / Makefile
index 03d2141..a067cb2 100755 (executable)
@@ -1,22 +1,34 @@
 PREFIX = /usr/local/share
 MAJOR = 0
 MINOR = 9
-REVISION = 0
+REVISION = 10
 VER = $(MAJOR).$(MINOR).$(REVISION)
 
 DEST = $(PREFIX)/rec10/tstools
 
 all: 
        cd epgdump;make all
+       cd tunerec;make
 clean:
        cd epgdump;make clean
 install: 
-       mkdir $(DEST)
+       if ! [ -d $(DEST) ]; then mkdir -p $(DEST) ;fi
+       if [ -f $(DEST)/BonTsDemux.exe ]; then rm $(DEST)/BonTsDemux.exe ;fi
+       if [ -f $(DEST)/BonTsDemuxLib.dll ]; then rm $(DEST)/BonTsDemuxLib.dll ;fi
        cd BonTsDemux;cp ./*.* $(DEST)/
+       if [ -f $(DEST)/jTsSplitter.jar ]; then rm $(DEST)/jTsSplitter.jar ;fi
        cd jTsSplitter;cp ./*.* $(DEST)/
-       cd cfr2tc;cp ./cfr2tc.exe $(DEST)/
-       cd DtsEdit;cp ./DtsEdit.exe $(DEST)/
+       #cd cfr2tc;cp ./cfr2tc.exe $(DEST)/
+       #cd DtsEdit;cp ./DtsEdit.exe $(DEST)/
+       #cd xvfb-run;cp ./xvfb-run $(DEST)/
+       #cd caption2ass;cp ./Caption2Ass.exe $(DEST)/
+       #cd caption2ass;cp ./Caption.dll $(DEST)/
+       #chmod +x $(DEST)/xvfb-run
        cd epgdump;make install
+       cd tunerec;install -m755 ./tunerec /usr/local/bin/
+       if [ -f ./neroAacEnc ]; then install -m755 ./neroAacEnc /usr/local/bin/ ;fi
 uninstall:
-       rm -r $(DEST)
+       rm -rf $(DEST)
+       if [ -f /usr/local/bin/neroAacEnc ]; then rm /usr/local/bin/neroAacEnc ;fi
+       rm -rf /usr/local/bin/tunerec
        cd epgdump;make uninstall