remove '@' in front of the command; do create backup configuration directory
[simple-launcher] / Makefile
index c5e0a35..5cf169f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,12 +10,14 @@ LDFLAGS = -shared
 LIBS = -lstdc++
 
 TARGET=simple-launcher.so
+DESKTOP_FILE=simple-launcher.desktop
+BACKUP_CONF=simple-launcher.backup
 
 all: $(TARGET)
 
 tests: test test1
 
-$(TARGET): simple-launcher.o launcher-item.o sla-list.o
+$(TARGET): simple-launcher.o launchable-item.o launcher-item.o sla-list.o utils.o
        $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
 
 test: test.o launcher-item.o
@@ -25,12 +27,14 @@ test1: test1.o sla-list.o launcher-item.o
        g++ -g -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS)
 
 clean:
-       rm -f *.d *.o $(TARGET) test
+       rm -f *.d *.o $(TARGET) test test1
 
 install: $(TARGET)
        install -d $(DESTDIR)/usr/share/applications/hildon-home
-       install -m 0644 simple-launcher.desktop $(DESTDIR)/usr/share/applications/hildon-home
+       install -m 0644 $(DESKTOP_FILE) $(DESTDIR)/usr/share/applications/hildon-home
        install -d $(DESTDIR)/usr/lib/hildon-home
        install -m 0644 $(TARGET) $(DESTDIR)/usr/lib/hildon-home
+       install -d $(DESTDIR)/etc/osso-backup/applications
+       install -m 0644 $(BACKUP_CONF) $(DESTDIR)/etc/osso-backup/applications/simple-launcher.conf
 
 -include *.d