target := $(PKG_TARG)-
endif
+prefix := /usr
+
gcc := g++
flags ?= -g3 -O0 -DYYDEBUG=1
arch := $(shell $(dpkg_architecture) -qDEB_HOST_ARCH 2>/dev/null)
endif
-header := Cycript.tab.hh Parser.hpp Pooling.hpp cycript.hpp Internal.hpp Error.hpp String.hpp Exception.hpp Standard.hpp
+header := Cycript.tab.hh Parser.hpp Pooling.hpp List.hpp Local.hpp cycript.hpp Internal.hpp Error.hpp String.hpp Exception.hpp Standard.hpp
code :=
code += Replace.o Output.o
rm -rf package
mkdir -p package/DEBIAN
cp -pR control package/DEBIAN
- mkdir -p package/usr/{bin,lib,sbin}
+ mkdir -p package$(prefix)/{bin,lib,sbin}
$(restart) extra
- cp -pR $(lib)cycript.$(dll) package/usr/lib
- cp -pR cycript package/usr/bin
- #cp -pR cyrver package/usr/sbin
+ cp -pR $(lib)cycript.$(dll) package$(prefix)/lib
+ cp -pR cycript package$(prefix)/bin
+ #cp -pR cyrver package$(prefix)/sbin
dpkg-deb -b package $(deb)
endif
if [[ -e test.cy ]]; then cycript test.cy; fi
install: cycript $(lib)cycript.$(dll)
- cp -p cycript /usr/bin
- cp -p $(lib)cycript.$(dll) /usr/lib
+ sudo cp -p cycript /usr/bin
+ sudo cp -p $(lib)cycript.$(dll) /usr/lib
+ sudo chgrp procmod /usr/bin/cycript
+ sudo chmod g+s /usr/bin/cycript
+
+uninstall:
+ sudo rm -f /usr/bin/cycript /usr/lib/libcycript.dylib
.PHONY: all clean extra package control.tmp