<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>73467</bug_id>
          
          <creation_ts>2004-01-25 15:39:10 +0000</creation_ts>
          <short_desc>Incomplete make clean for parts/appwizard/common</short_desc>
          <delta_ts>2004-01-25 21:22:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kdevelop</product>
          <component>general</component>
          <version>git master</version>
          <rep_platform>Debian stable</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frans Pop">elendil</reporter>
          <assigned_to name="KDevelop Developers">kdevelop-devel</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>198720</commentid>
    <comment_count>0</comment_count>
    <who name="Frans Pop">elendil</who>
    <bug_when>2004-01-25 15:39:10 +0000</bug_when>
    <thetext>Version:           3.0.0b2 (kdevelop-040106cvs) (using KDE KDE 3.1.4)
Installed from:    Debian stable Packages
OS:          Linux

&apos;make clean&apos; does not remove the *.tar.gz files created in the parts/appwizard/common direcory.
Will attach a patch that fixes this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198722</commentid>
    <comment_count>1</comment_count>
      <attachid>4345</attachid>
    <who name="Frans Pop">elendil</who>
    <bug_when>2004-01-25 15:43:30 +0000</bug_when>
    <thetext>Created attachment 4345
Patch (adds CLEANFILES to Makefile.am)

Alternatively the files to be removed could be listed individually in
CLEANFILES:
- admin.tar.gz
- gnome.tar.gz
- gnu.tar.gz
- incadmin.tar.gz
- wxwindows.tar.gz</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198763</commentid>
    <comment_count>2</comment_count>
    <who name="Amilcar do Carmo Lucas">a.lucas</who>
    <bug_when>2004-01-25 18:07:03 +0000</bug_when>
    <thetext>Thanks again!!!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198814</commentid>
    <comment_count>3</comment_count>
    <who name="Amilcar do Carmo Lucas">amilcar</who>
    <bug_when>2004-01-25 21:22:25 +0000</bug_when>
    <thetext>Subject: kdevelop

CVS commit by aclu: 

This patch fixes:
Bug 71003 : Cannot translate project due to srcdir != builddir.
Bug 73467: Incomplete make clean for parts/appwizard/common

1. buildtools/autotools/addtranslationdlg.cpp
Problem here was that a make was called in &lt;projectDir&gt;/po, but when Build
configuration is debug there is no makefile in that directory.
So the make has to be called from &lt;buildDir&gt;/po.
The &apos;force-reedit&apos; works fine because it changes internally to &lt;projectDir&gt;/po
for most of it&apos;s actual work.

2. parts/appwizard/common/kde-Makefile.am
This patch is slightly different from the patch proposed earlier.
&apos;make-messages&apos; has to work in the &lt;projectDir&gt; tree, taking the source from
&lt;projectDir&gt;/src and writing the .pot file to &lt;projectDir&gt;/po.

3. parts/appwizard/common/admin/am_edit
The &apos;$(MAKE) -C po merge&apos; form &apos;make messages&apos; again needs to work in the
&lt;projectDir&gt;/po directory, merging the .pot file into the .po files.

4. parts/appwizard/common/Makefile.am
&apos;make clean&apos; does not remove the *.tar.gz files created in the parts/appwizard/common directory.

To make this patch work you need to:
cd parts/appwizard/common 
make clean

Thanks to Frans Pop &lt;aragorn  IN tiscali.nl&gt; for the patch.

CCMAIL: 71003-done@bugs.kde.org
CCMAIL: 73467-done@bugs.kde.org


  M +1 -0      buildtools/autotools/addtranslationdlg.cpp   1.8
  M +2 -0      parts/appwizard/common/Makefile.am   1.14
  M +1 -1      parts/appwizard/common/kde-Makefile.am   1.3
  M +2 -2      parts/appwizard/common/admin/am_edit   1.6


--- kdevelop/buildtools/autotools/addtranslationdlg.cpp  #1.7:1.8
@@ -100,4 +100,5 @@ void AddTranslationDialog::accept()
     f.close();
 
+    dir = m_part-&gt;buildDirectory() + &quot;/po&quot;;
     m_part-&gt;startMakeCommand(dir, QString::fromLatin1(&quot;force-reedit&quot;));
 

--- kdevelop/parts/appwizard/common/admin/am_edit  #1.5:1.6
@@ -1612,5 +1612,5 @@
 
   if (!$lang) {
-    appendLines(&quot;merge:\n\t\$(MAKE) -f \$(top_srcdir)/admin/Makefile.common package-merge POFILES=\&quot;\${POFILES}\&quot; PACKAGE=\${PACKAGE}\n\n&quot;);
+    appendLines(&quot;merge:\n\t\$(MAKE) -C \$(top_srcdir)/po -f \$(top_srcdir)/admin/Makefile.common package-merge POFILES=\&quot;\${POFILES}\&quot; PACKAGE=\${PACKAGE}\n\n&quot;);
   }
  

--- kdevelop/parts/appwizard/common/Makefile.am  #1.13:1.14
@@ -1,2 +1,4 @@
+CLEANFILES = *.tar.gz
+
 admin.tar.gz:
         $(TAR) -cf admin.tar -C $(srcdir) admin

--- kdevelop/parts/appwizard/common/kde-Makefile.am  #1.2:1.3
@@ -13,5 +13,5 @@
 
 package-messages:
-        $(MAKE) -f $(top_srcdir)/admin/Makefile.common package-messages
+        cd $(top_srcdir) &amp;&amp; $(MAKE) -f admin/Makefile.common package-messages
         $(MAKE) -C po merge
 


</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4345</attachid>
            <date>2004-01-25 15:43:30 +0000</date>
            <delta_ts>2004-01-25 15:43:30 +0000</delta_ts>
            <desc>Patch (adds CLEANFILES to Makefile.am)</desc>
            <filename>clean_tar.gz.diff</filename>
            <type>text/plain</type>
            <size>287</size>
            <attacher name="Frans Pop">elendil</attacher>
            
              <data encoding="base64">LS0tIGtkZXZlbG9wMy0zLjAtMDFjdnMvcGFydHMvYXBwd2l6YXJkL2NvbW1vbi9NYWtlZmlsZS5h
bQlUaHUgT2N0ICAyIDAwOjQ2OjMyIDIwMDMKKysrIGtkZXZlbG9wMy0zLjAtMDFjdnMuZmpwL3Bh
cnRzL2FwcHdpemFyZC9jb21tb24vTWFrZWZpbGUuYW0JU2F0IEphbiAyNCAxOToyNjo0MSAyMDA0
CkBAIC0xLDMgKzEsNSBAQAorQ0xFQU5GSUxFUyA9ICoudGFyLmd6CisKIGFkbWluLnRhci5nejoK
IAkkKFRBUikgLWNmIGFkbWluLnRhciAtQyAkKHNyY2RpcikgYWRtaW4KIAlnemlwIGFkbWluLnRh
cgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>