Bug 48012 - make multi-dir distribution fails due to incorrect path in Makefile.am
Summary: make multi-dir distribution fails due to incorrect path in Makefile.am
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: Automake (show other bugs)
Version: 2.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop-Devel List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-18 13:15 UTC by Daniel Franke
Modified: 2006-12-07 20:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.