Fixing a bug in makefile
[theonering] / Makefile
index a2c7d28..2944e9c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ CTAGS=ctags-exuberant
 all: test
 
 run: $(OBJ)
-       $(SOURCE_PATH)/dc_glade.py
+       $(SOURCE_PATH)/telepathy-theonering
 
 profile: $(OBJ)
        $(PROFILE_GEN) $(PROGRAM)
@@ -39,16 +39,18 @@ test: $(OBJ)
 
 package: $(OBJ)
        rm -Rf $(BUILD_PATH)
+
        mkdir -p $(BUILD_PATH)/generic
        cp $(SOURCE_PATH)/constants.py  $(BUILD_PATH)/generic
        $(foreach file, $(DATA), cp $(file) $(BUILD_PATH)/generic/$(subst /,-,$(file)) ; )
        $(foreach file, $(SOURCE), cp $(file) $(BUILD_PATH)/generic/$(subst /,-,$(file)) ; )
        cp support/$(PROJECT_NAME).manager $(BUILD_PATH)/generic
-       cp support/org.freedesktop.Telepathy.ConnectionManager.$(PROJECT_NAME).service.in $(BUILD_PATH)/generic
+       cp support/org.freedesktop.Telepathy.ConnectionManager.$(PROJECT_NAME).service $(BUILD_PATH)/generic
        cp support/icons/*-$(PROJECT_NAME).png $(BUILD_PATH)/generic/
        cp support/builddeb.py $(BUILD_PATH)/generic
        cp support/py2deb.py $(BUILD_PATH)/generic
        cp support/fake_py2deb.py $(BUILD_PATH)/generic
+
        mkdir -p $(BUILD_PATH)/chinook
        cp -R $(BUILD_PATH)/generic/* $(BUILD_PATH)/chinook
        cd $(BUILD_PATH)/chinook ; python builddeb.py chinook
@@ -61,6 +63,15 @@ package: $(OBJ)
        mkdir -p $(BUILD_PATH)/mer
        cp -R $(BUILD_PATH)/generic/* $(BUILD_PATH)/mer
        cd $(BUILD_PATH)/mer ; python builddeb.py mer
+       mkdir -p $(BUILD_PATH)/debian
+       cp -R $(BUILD_PATH)/generic/* $(BUILD_PATH)/debian
+       cd $(BUILD_PATH)/debian ; python builddeb.py debian
+
+upload: package
+       dput fremantle-extras-builder $(BUILD_PATH)/fremantle/$(PROJECT_NAME)*.changes
+       dput diablo-extras-builder $(BUILD_PATH)/diablo/$(PROJECT_NAME)*.changes
+       dput chinook-extras-builder $(BUILD_PATH)/chinook/$(PROJECT_NAME)*.changes
+       cp $(BUILD_PATH)/debian/*.deb www/$(PROJECT_NAME).deb
 
 lint: $(OBJ)
        $(foreach file, $(SOURCE), $(LINT) $(file) ; )