Build python protobuf

pull/5/head
Michael Spang 14 years ago
parent 17eb4d40b9
commit e3555e5b74
  1. 1
      ceo/.gitignore
  2. 2
      debian/control
  3. 5
      src/Makefile

1
ceo/.gitignore vendored

@ -0,0 +1 @@
/ceo_pb2.py

2
debian/control vendored

@ -2,7 +2,7 @@ Source: ceo
Section: admin
Priority: optional
Maintainer: Systems Committee <syscom@csclub.uwaterloo.ca>
Build-Depends: debhelper (>= 5.0.0), python-dev (>= 2.4), python-support (>= 0.3), libkrb5-dev, libldap2-dev, libsasl2-dev, libsctp-dev, libprotobuf-c0-dev, libacl1-dev
Build-Depends: debhelper (>= 5.0.0), python-dev (>= 2.4), python-support (>= 0.3), libkrb5-dev, libldap2-dev, libsasl2-dev, libsctp-dev, libprotobuf-c0-dev, libacl1-dev, protobuf-compiler, protobuf-c-compiler
Standards-Version: 3.8.2
Package: ceo-common

@ -31,7 +31,7 @@ CONFIG_PROGS := $(LDAP_PROGS) $(KRB5_PROGS) $(NET_PROGS)
UTIL_OBJECTS := util.o strbuf.o
UTIL_PROGS := config-test $(CONFIG_PROGS)
all: $(BIN_PROGS) $(LIB_PROGS) $(EXT_PROGS)
all: $(BIN_PROGS) $(LIB_PROGS) $(EXT_PROGS) ../ceo/ceo_pb2.py
clean:
rm -f $(BIN_PROGS) $(LIB_PROGS) $(EXT_PROGS) *.o ceo.pb-c.c ceo.pb-c.h
@ -44,6 +44,9 @@ ceo.pb-c.c ceo.pb-c.h: ceo.proto
%: %.o
$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
../ceo/ceo_pb2.py:
protoc --python_out=../ceo ceo.proto
ceod: dmaster.o dslave.o
$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@

Loading…
Cancel
Save