* [Buildroot] missing expat-dirclean target
@ 2007-07-08 12:09 Cristian Ionescu-Idbohrn
2007-07-08 12:18 ` Bernhard Fischer
0 siblings, 1 reply; 7+ messages in thread
From: Cristian Ionescu-Idbohrn @ 2007-07-08 12:09 UTC (permalink / raw)
To: buildroot
Index: expat.mk
===================================================================
--- expat.mk (revision 19026)
+++ expat.mk (working copy)
@@ -70,6 +70,9 @@
#rm -f $(STAGING_DIR)/usr/bin/xmlwf $(TARGET_DIR)/usr/bin/xmlwf
-$(MAKE) -C $(EXPAT_DIR) clean
+expat-dirclean:
+ rm -rf $(EXPAT_DIR)
+
#############################################################
#
# Toplevel Makefile options
--
Cristian
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] missing expat-dirclean target
2007-07-08 12:09 [Buildroot] missing expat-dirclean target Cristian Ionescu-Idbohrn
@ 2007-07-08 12:18 ` Bernhard Fischer
2007-07-08 13:07 ` Cristian Ionescu-Idbohrn
0 siblings, 1 reply; 7+ messages in thread
From: Bernhard Fischer @ 2007-07-08 12:18 UTC (permalink / raw)
To: buildroot
On Sun, Jul 08, 2007 at 02:09:11PM +0200, Cristian Ionescu-Idbohrn wrote:
>Index: expat.mk
>===================================================================
>--- expat.mk (revision 19026)
>+++ expat.mk (working copy)
>@@ -70,6 +70,9 @@
> #rm -f $(STAGING_DIR)/usr/bin/xmlwf $(TARGET_DIR)/usr/bin/xmlwf
the clean target must wipe installed stuff from the staging-dir. Please
fix this, too.
> -$(MAKE) -C $(EXPAT_DIR) clean
>
>+expat-dirclean:
>+ rm -rf $(EXPAT_DIR)
>+
> #############################################################
> #
> # Toplevel Makefile options
this package uses wrong installation pathes, please fix and test while
you're at it (i don't use it):
--includedir=/include \
is wrong, whould be /usr/include. Most of these pathes are not needed,
just --prefix=/usr should be enough.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] missing expat-dirclean target
2007-07-08 12:18 ` Bernhard Fischer
@ 2007-07-08 13:07 ` Cristian Ionescu-Idbohrn
2007-07-08 13:11 ` Bernhard Fischer
0 siblings, 1 reply; 7+ messages in thread
From: Cristian Ionescu-Idbohrn @ 2007-07-08 13:07 UTC (permalink / raw)
To: buildroot
On Sun, 8 Jul 2007, Bernhard Fischer wrote:
> On Sun, Jul 08, 2007 at 02:09:11PM +0200, Cristian Ionescu-Idbohrn wrote:
> >Index: expat.mk
> >===================================================================
> >--- expat.mk (revision 19026)
> >+++ expat.mk (working copy)
> >@@ -70,6 +70,9 @@
> > #rm -f $(STAGING_DIR)/usr/bin/xmlwf $(TARGET_DIR)/usr/bin/xmlwf
>
> the clean target must wipe installed stuff from the staging-dir. Please
> fix this, too.
Looks like stuff is removed both from STAGING_DIR and TARGET_DIR. Is this
the correct behaviour?
> this package uses wrong installation pathes, please fix and test while
> you're at it (i don't use it):
>
> --includedir=/include \
> is wrong, whould be /usr/include. Most of these pathes are not needed,
> just --prefix=/usr should be enough.
Will do.
--
Cristian
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] missing expat-dirclean target
2007-07-08 13:07 ` Cristian Ionescu-Idbohrn
@ 2007-07-08 13:11 ` Bernhard Fischer
2007-07-08 13:27 ` Cristian Ionescu-Idbohrn
2007-07-08 13:34 ` Cristian Ionescu-Idbohrn
0 siblings, 2 replies; 7+ messages in thread
From: Bernhard Fischer @ 2007-07-08 13:11 UTC (permalink / raw)
To: buildroot
On Sun, Jul 08, 2007 at 03:07:18PM +0200, Cristian Ionescu-Idbohrn wrote:
>On Sun, 8 Jul 2007, Bernhard Fischer wrote:
>
>> On Sun, Jul 08, 2007 at 02:09:11PM +0200, Cristian Ionescu-Idbohrn wrote:
>> >Index: expat.mk
>> >===================================================================
>> >--- expat.mk (revision 19026)
>> >+++ expat.mk (working copy)
>> >@@ -70,6 +70,9 @@
>> > #rm -f $(STAGING_DIR)/usr/bin/xmlwf $(TARGET_DIR)/usr/bin/xmlwf
>>
>> the clean target must wipe installed stuff from the staging-dir. Please
>> fix this, too.
>
>Looks like stuff is removed both from STAGING_DIR and TARGET_DIR. Is this
>the correct behaviour?
I think removing stuff from both staging_dir and target_dir is the way
to go, yes.
Consider somebody intending to turn off a package. The usual intuitive
way is IMHO to make foo-clean then reconfigure to remove that package.
I'm open to alternative suggestions, of course.
>> this package uses wrong installation pathes, please fix and test while
>> you're at it (i don't use it):
>>
>> --includedir=/include \
>> is wrong, whould be /usr/include. Most of these pathes are not needed,
>> just --prefix=/usr should be enough.
>
>Will do.
thanks alot in advance!
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] missing expat-dirclean target
2007-07-08 13:11 ` Bernhard Fischer
@ 2007-07-08 13:27 ` Cristian Ionescu-Idbohrn
2007-07-08 13:51 ` Bernhard Fischer
2007-07-08 13:34 ` Cristian Ionescu-Idbohrn
1 sibling, 1 reply; 7+ messages in thread
From: Cristian Ionescu-Idbohrn @ 2007-07-08 13:27 UTC (permalink / raw)
To: buildroot
On Sun, 8 Jul 2007, Bernhard Fischer wrote:
> On Sun, Jul 08, 2007 at 03:07:18PM +0200, Cristian Ionescu-Idbohrn wrote:
> >
> > Looks like stuff is removed both from STAGING_DIR and TARGET_DIR. Is
> > this the correct behaviour?
>
> I think removing stuff from both staging_dir and target_dir is the way
> to go, yes.
Alright. I still wish every makefile had a target called called
<something>-uninstall to do that.
> Consider somebody intending to turn off a package. The usual intuitive
> way is IMHO to make foo-clean then reconfigure to remove that package.
>
> I'm open to alternative suggestions, of course.
This is how I wish it was done (looks more intuitive to me):
<something>-clean does the usual 'make clean' stuff
<something>-dirclean wipes out the build directory
<something>-uninstall wipes whatever was installed
--
Cristian
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] missing expat-dirclean target
2007-07-08 13:11 ` Bernhard Fischer
2007-07-08 13:27 ` Cristian Ionescu-Idbohrn
@ 2007-07-08 13:34 ` Cristian Ionescu-Idbohrn
1 sibling, 0 replies; 7+ messages in thread
From: Cristian Ionescu-Idbohrn @ 2007-07-08 13:34 UTC (permalink / raw)
To: buildroot
On Sun, 8 Jul 2007, Bernhard Fischer wrote:
> >> this package uses wrong installation pathes, please fix and test while
> >> you're at it (i don't use it):
> >>
> >> --includedir=/include \
> >> is wrong, whould be /usr/include. Most of these pathes are not needed,
> >> just --prefix=/usr should be enough.
> >
> >Will do.
>
> thanks alot in advance!
Done this too now.
Please have a look att the attached (broke some long lines too).
--
Cristian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex.patch
Type: text/x-diff
Size: 1633 bytes
Desc:
Url : http://busybox.net/lists/buildroot/attachments/20070708/7d362ac3/attachment-0001.bin
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] missing expat-dirclean target
2007-07-08 13:27 ` Cristian Ionescu-Idbohrn
@ 2007-07-08 13:51 ` Bernhard Fischer
0 siblings, 0 replies; 7+ messages in thread
From: Bernhard Fischer @ 2007-07-08 13:51 UTC (permalink / raw)
To: buildroot
On Sun, Jul 08, 2007 at 03:27:11PM +0200, Cristian Ionescu-Idbohrn wrote:
>On Sun, 8 Jul 2007, Bernhard Fischer wrote:
>
>> On Sun, Jul 08, 2007 at 03:07:18PM +0200, Cristian Ionescu-Idbohrn wrote:
>> >
>> > Looks like stuff is removed both from STAGING_DIR and TARGET_DIR. Is
>> > this the correct behaviour?
>>
>> I think removing stuff from both staging_dir and target_dir is the way
>> to go, yes.
>
>Alright. I still wish every makefile had a target called called
><something>-uninstall to do that.
>
>> Consider somebody intending to turn off a package. The usual intuitive
>> way is IMHO to make foo-clean then reconfigure to remove that package.
>>
>> I'm open to alternative suggestions, of course.
>
>This is how I wish it was done (looks more intuitive to me):
>
><something>-clean does the usual 'make clean' stuff
><something>-dirclean wipes out the build directory
><something>-uninstall wipes whatever was installed
sounds ok to me, i'll let others comment. Care to send a patch if noone
objects withing a couple of days?
cheers,
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-07-08 13:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-08 12:09 [Buildroot] missing expat-dirclean target Cristian Ionescu-Idbohrn
2007-07-08 12:18 ` Bernhard Fischer
2007-07-08 13:07 ` Cristian Ionescu-Idbohrn
2007-07-08 13:11 ` Bernhard Fischer
2007-07-08 13:27 ` Cristian Ionescu-Idbohrn
2007-07-08 13:51 ` Bernhard Fischer
2007-07-08 13:34 ` Cristian Ionescu-Idbohrn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox