* Re: [PATCH 2/3] add btrfs-list.o as a seperate target [not found] ` <a440a5ce963dd17cadf70cae05c9ceb661615f02.1309560079.git.philipp.andreas@gmail.com> @ 2011-07-03 18:43 ` Hugo Mills 2011-07-03 19:13 ` Andreas Philipp 0 siblings, 1 reply; 4+ messages in thread From: Hugo Mills @ 2011-07-03 18:43 UTC (permalink / raw) To: Andreas Philipp; +Cc: linux-btrfs [-- Attachment #1: Type: text/plain, Size: 1567 bytes --] On Sat, Jul 02, 2011 at 12:44:37AM +0200, Andreas Philipp wrote: > By adding btrfs-list.o as a seperate target which depends additionally separate > on version we can fix the following build error when invoking 'make > btrfs'. > > btrfs-list.c:37:21: error: version.h: No such file or directory > make: *** [btrfs-list.o] Error 1 > > Signed-off-by: Andreas Philipp <philipp.andreas@gmail.com> > --- > Makefile | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/Makefile b/Makefile > index 3a1e308..c60f9af 100644 > --- a/Makefile > +++ b/Makefile > @@ -27,6 +27,10 @@ else > check=ls > endif > > +btrfs-list.o: version > + $(check) btrfs-list.c > + $(CC) $(DEPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c btrfs-list.c > + > .c.o: > $(check) $< > $(CC) $(DEPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c $< This breaks the use of simple "make", as it just makes btrfs-list.o and nothing else. This new target should probably be put somewhere near the bottom of the file, not above the "all" target, where it becomes the default: hrm@ruthven:btrfs-progs-unstable $ make bash version.sh ls btrfs-list.c btrfs-list.c gcc -Wp,-MMD,./.btrfs-list.o.d,-MT,btrfs-list.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -Os -c btrfs-list.c hrm@ruthven:btrfs-progs-unstable $ Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- "You know, the British have always been nice to mad people." --- [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 190 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/3] add btrfs-list.o as a seperate target 2011-07-03 18:43 ` [PATCH 2/3] add btrfs-list.o as a seperate target Hugo Mills @ 2011-07-03 19:13 ` Andreas Philipp 0 siblings, 0 replies; 4+ messages in thread From: Andreas Philipp @ 2011-07-03 19:13 UTC (permalink / raw) To: Hugo Mills, linux-btrfs -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Please ignore this patch. I found a more elegant solution just right now. Thanks, Andreas On 03.07.2011 20:43, Hugo Mills wrote: > On Sat, Jul 02, 2011 at 12:44:37AM +0200, Andreas Philipp wrote: >> By adding btrfs-list.o as a seperate target which depends additionally > separate > >> on version we can fix the following build error when invoking 'make >> btrfs'. >> >> btrfs-list.c:37:21: error: version.h: No such file or directory >> make: *** [btrfs-list.o] Error 1 >> >> Signed-off-by: Andreas Philipp <philipp.andreas@gmail.com> >> --- >> Makefile | 4 ++++ >> 1 files changed, 4 insertions(+), 0 deletions(-) >> >> diff --git a/Makefile b/Makefile >> index 3a1e308..c60f9af 100644 >> --- a/Makefile >> +++ b/Makefile >> @@ -27,6 +27,10 @@ else >> check=ls >> endif >> >> +btrfs-list.o: version >> + $(check) btrfs-list.c >> + $(CC) $(DEPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c btrfs-list.c >> + >> .c.o: >> $(check) $< >> $(CC) $(DEPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c $< > > This breaks the use of simple "make", as it just makes btrfs-list.o > and nothing else. This new target should probably be put somewhere > near the bottom of the file, not above the "all" target, where it > becomes the default: > > hrm@ruthven:btrfs-progs-unstable $ make > bash version.sh > ls btrfs-list.c > btrfs-list.c > gcc -Wp,-MMD,./.btrfs-list.o.d,-MT,btrfs-list.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -Os -c btrfs-list.c > hrm@ruthven:btrfs-progs-unstable $ > > Hugo. > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJOEL88AAoJEJIcBJ3+XkgiAZ4QAIz+zHogJAs6Te/sxkttiItl uudHpZJFiPDsD9jOrynewG9w3leKbde8pr9niB8fcDWwtdRp+z3k86CTNegVmkuv 75MkH5YEOjg8dVawaamjFLC0ENJMe/u3f3Ry982Ts7HDctCiABEfF4+XZ5dkrClk igqNljcFrPS7s/X3lo3C9WNyJuPtdV1Woyy5a0u8d7NTsuLEDTq4jnup4zd6ObTd MpQNNLb28rv2l9X9tRX2bRlneoSVtKdhb4tEAWG3miVyB3wDR+/9EJiGeYZlG52v tXwbuTa8lngwJuVZsjhm+nzgJHVW3I6CXj13L4yxdQX8IKRQ+PrfR6HhEyO84Jim IKdtKEsvI5sHucAiG26YuOSp6vnkiwebDsOmxnXsfr9EVcKlPQC7yYB1Akh7jMBe BIy38RaB87nbI5m7ra4e+IGkl2stjZ7GdspjQg97wZI1WRdAu1NSsG6EbO05GZ3v v/p4llrXH0Dl1ylygz9Prwkz9w5GVOpo88Ck0XOFtf8UrQJEMEMs8BwLu65prkmY 7L1srODGe+hpYLYEjBNL3iwACcLX5Yd80nHJBb+rdwLN8N3LXve6SxPw/pLgdty2 Su5o0AU39csp427OM1fExDbqphfsFhkK3SMOOGXS52Bed+iYXAzcJFGQ7c53l3vB 3qQ4EWe7LeX3gY6yd/EO =JgSk -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <885e4465d2dd3889dc766d079586fd91f21d51cf.1309560079.git.philipp.andreas@gmail.com>]
* Re: [PATCH 1/3] add all targets to clean target [not found] ` <885e4465d2dd3889dc766d079586fd91f21d51cf.1309560079.git.philipp.andreas@gmail.com> @ 2011-07-03 18:44 ` Hugo Mills 0 siblings, 0 replies; 4+ messages in thread From: Hugo Mills @ 2011-07-03 18:44 UTC (permalink / raw) To: Andreas Philipp; +Cc: linux-btrfs [-- Attachment #1: Type: text/plain, Size: 1124 bytes --] On Sat, Jul 02, 2011 at 12:44:36AM +0200, Andreas Philipp wrote: > When issuing 'make clean' not all files generated by the individual > targets have been deleted since some files have been missing in the > definition of the 'make clean' target. > > Signed-off-by: Andreas Philipp <philipp.andreas@gmail.com> > --- > Makefile | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/Makefile b/Makefile > index d6a77d8..3a1e308 100644 > --- a/Makefile > +++ b/Makefile > @@ -93,7 +93,8 @@ install-man: > cd man; make install > > clean : > - rm -f $(progs) cscope.out *.o .*.d btrfs-convert > + rm -f $(progs) cscope.out *.o .*.d btrfs-convert btrfs-image btrfs-select-super \ > + btrfs-zero-log btrfstune dir-test ioctl-test quick-test version.h > cd man; make clean > > install: $(progs) install-man I've added this to the integration stack. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- "You know, the British have always been nice to mad people." --- [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 190 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <3cf741192c0f5f0b92c0fc1dceba986130eca134.1309560079.git.philipp.andreas@gmail.com>]
* Re: [PATCH 3/3] some style/layout changes [not found] ` <3cf741192c0f5f0b92c0fc1dceba986130eca134.1309560079.git.philipp.andreas@gmail.com> @ 2011-07-03 18:45 ` Hugo Mills 0 siblings, 0 replies; 4+ messages in thread From: Hugo Mills @ 2011-07-03 18:45 UTC (permalink / raw) To: Andreas Philipp; +Cc: linux-btrfs [-- Attachment #1: Type: text/plain, Size: 1830 bytes --] On Sat, Jul 02, 2011 at 12:44:38AM +0200, Andreas Philipp wrote: > Just do a few simple style/layout changes to make the makefile look > better. > > Signed-off-by: Andreas Philipp <philipp.andreas@gmail.com> > --- > Makefile | 18 ++++++++---------- > 1 files changed, 8 insertions(+), 10 deletions(-) > > diff --git a/Makefile b/Makefile > index c60f9af..4298323 100644 > --- a/Makefile > +++ b/Makefile > @@ -1,4 +1,4 @@ > -CC=gcc > +CC = gcc > AM_CFLAGS = -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 > CFLAGS = -g -Werror -Os > objects = ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \ > @@ -6,25 +6,23 @@ objects = ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \ > inode-map.o crc32c.o rbtree.o extent-cache.o extent_io.o \ > volumes.o utils.o btrfs-list.o btrfslabel.o > > -# > -CHECKFLAGS=-D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise \ > - -Wuninitialized -Wshadow -Wundef > +CHECKFLAGS= -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise \ > + -Wuninitialized -Wshadow -Wundef > DEPFLAGS = -Wp,-MMD,$(@D)/.$(@F).d,-MT,$@ > > -INSTALL= install > +INSTALL = install > prefix ?= /usr/local > bindir = $(prefix)/bin > -LIBS=-luuid > +LIBS = -luuid > > progs = btrfsctl mkfs.btrfs btrfs-debug-tree btrfs-show btrfs-vol btrfsck \ > - btrfs \ > - btrfs-map-logical > + btrfs btrfs-map-logical > > # make C=1 to enable sparse > ifdef C > - check=sparse $(CHECKFLAGS) > + check = sparse $(CHECKFLAGS) > else > - check=ls > + check = ls > endif > > btrfs-list.o: version Added to the integration stack. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- "You know, the British have always been nice to mad people." --- [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 190 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-07-03 19:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <cover.1309560079.git.philipp.andreas@gmail.com>
[not found] ` <a440a5ce963dd17cadf70cae05c9ceb661615f02.1309560079.git.philipp.andreas@gmail.com>
2011-07-03 18:43 ` [PATCH 2/3] add btrfs-list.o as a seperate target Hugo Mills
2011-07-03 19:13 ` Andreas Philipp
[not found] ` <885e4465d2dd3889dc766d079586fd91f21d51cf.1309560079.git.philipp.andreas@gmail.com>
2011-07-03 18:44 ` [PATCH 1/3] add all targets to clean target Hugo Mills
[not found] ` <3cf741192c0f5f0b92c0fc1dceba986130eca134.1309560079.git.philipp.andreas@gmail.com>
2011-07-03 18:45 ` [PATCH 3/3] some style/layout changes Hugo Mills
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).