Bug 48012

Summary: make multi-dir distribution fails due to incorrect path in Makefile.am
Product: [Applications] kdevelop Reporter: Daniel Franke <newnews>
Component: Build tools: AutomakeAssignee: KDevelop-Devel List <kdevelop-devel>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: 2.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Daniel Franke 2002-09-18 13:15:11 UTC
Version:           2.1 (KDE 3.0.1) (using KDE KDE 3.0.1)
Installed from:    SuSE RPMs
Compiler:          gcc 2.95.3 
OS:          Linux

I tried to distribute multiple projects in various subdirs in one .tar.gz using automake/autoconf in the topdir.

Now, `make dist` fails in target "dist-hook" since its trying to cd in a directory that isn't where its expected. I solved the problem myself by changing in each projects' subdirectory the Makefile.am from

--cut--
dist-hook:
	cd $(top_distdir) && perl admin/am_edit -padmin
	cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs
--cut--
to
--cut--
dist-hook:
	cd $(distdir) && perl admin/am_edit -padmin
	cd $(distdir) && $(MAKE) -f admin/Makefile.common subdirs
--cut--

'make dist' now works for each single project as well as for all at once.
Comment 1 Amilcar do Carmo Lucas 2003-07-24 17:29:48 UTC
I think this one is no longer valid 
Comment 2 Megan Webb 2006-12-07 20:52:01 UTC
Not able to reproduce this on kdevelop 3.4 reversion 611280. 
Please reopen with more information if this continues.