Import Makefile.in changes from debian repo
authorKarthik Ramanan <a0393906@ti.com>
Thu, 1 Jan 1970 01:38:27 +0000 (01:38 +0000)
committerKarthik Ramanan <a0393906@ti.com>
Thu, 1 Jan 1970 01:38:27 +0000 (01:38 +0000)
Changes from these two patches are merged into a single patch
1. Updated Makefile to create folder if it does'nt exist
2. Added desktop files and removed debug prints.

Signed-off-by: Mrinmayee Hingolikar <mrinmayee@ti.com>
Signed-off-by: Karthik Ramanan <a0393906@ti.com>
Makefile.in

index 09a224c855d7e21be91cb5cedf6dd60b47c96129..215cb476e86119eb60c35f0975ec1783c19032b9 100644 (file)
@@ -96,6 +96,7 @@ else
 Q := @
 endif
 
+
 #
 # ====== All targets ======
 #
@@ -128,15 +129,17 @@ install:
        install -d $(DESTDIR)$(bindir) $(DESTDIR)$(docdir) $(DESTDIR)$(datadir)/$(PACKAGE_NAME)
        install dual-decode $(DESTDIR)$(bindir)
        install res/gui.xml $(DESTDIR)$(datadir)/$(PACKAGE_NAME)
-       install res/dual-decode.png $(DESKTOP_FILE_DIR)/pixmaps
-       install dual-decode.desktop $(DESKTOP_FILE_DIR)/applications
+       mkdir -p $(DESTDIR)$(DESKTOP_FILE_DIR)/pixmaps
+       install res/dual-decode.png $(DESTDIR)$(DESKTOP_FILE_DIR)/pixmaps
+       mkdir -p $(DESTDIR)$(DESKTOP_FILE_DIR)/applications
+       install dual-decode.desktop $(DESTDIR)$(DESKTOP_FILE_DIR)/applications
 
 uninstall:
        rm -r $(DESTDIR)$(docdir)
        rm -r $(DESTDIR)$(bindir)/$(PACKAGE_NAME)
        rm -r $(DESTDIR)$(datadir)/$(PACKAGE_NAME)/gui.xml
-       rm -r $(DESKTOP_FILE_DIR)/pixmaps/dual-decode.png
-       rm -r $(DESKTOP_FILE_DIR)/applications/dual-decode.desktop
+       rm -r $(DESTDIR)$(DESKTOP_FILE_DIR)/pixmaps/dual-decode.png
+       rm -r $(DESTDIR)$(DESKTOP_FILE_DIR)/applications/dual-decode.desktop
 
 doxygen:
        $(Q)$(DOXYGEN)