~ubuntu-branches/debian/jessie/btrfs-tools/jessie

« back to all changes in this revision

Viewing changes to .pc/0002-Fixes-FTBFS-with-no-add-needed.patch/Makefile

  • Committer: Package Import Robot
  • Author(s): Dimitri John Ledkov
  • Date: 2014-09-21 02:05:14 UTC
  • mfrom: (1.2.13) (6.1.38 sid)
  • Revision ID: package-import@ubuntu.com-20140921020514-kx4b23aw4grvevrc
Tags: 3.16-1
* New upstream release.
* Add asciidoc & xmlto build dependencies.
* Disable test-suites for now, should be run as autopkgtests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
objects = ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \
10
10
          root-tree.o dir-item.o file-item.o inode-item.o inode-map.o \
11
11
          extent-cache.o extent_io.o volumes.o utils.o repair.o \
12
 
          qgroup.o raid6.o free-space-cache.o list_sort.o props.o
 
12
          qgroup.o raid6.o free-space-cache.o list_sort.o props.o \
 
13
          ulist.o qgroup-verify.o
13
14
cmds_objects = cmds-subvolume.o cmds-filesystem.o cmds-device.o cmds-scrub.o \
14
15
               cmds-inspect.o cmds-balance.o cmds-send.o cmds-receive.o \
15
16
               cmds-quota.o cmds-qgroup.o cmds-replace.o cmds-check.o \
16
17
               cmds-restore.o cmds-rescue.o chunk-recover.o super-recover.o \
17
18
               cmds-property.o
18
19
libbtrfs_objects = send-stream.o send-utils.o rbtree.o btrfs-list.o crc32c.o \
19
 
                   uuid-tree.o
 
20
                   uuid-tree.o utils-lib.o
20
21
libbtrfs_headers = send-stream.h send-utils.h send.h rbtree.h btrfs-list.h \
21
22
               crc32c.h list.h kerncompat.h radix-tree.h extent-cache.h \
22
23
               extent_io.h ioctl.h ctree.h btrfsck.h
23
 
TESTS = fsck-tests.sh
 
24
TESTS = fsck-tests.sh convert-tests.sh
24
25
 
25
26
INSTALL = install
26
27
prefix ?= /usr/local
53
54
# specify btrfs_foo_libs = <list of libs>; see $($(subst...)) rules below
54
55
btrfs_convert_libs = -lext2fs -lcom_err
55
56
btrfs_image_libs = -lpthread
56
 
btrfs_fragment_libs = -lgd -lpng -ljpeg -lfreetype
 
57
btrfs_fragments_libs = -lgd -lpng -ljpeg -lfreetype
57
58
 
58
 
SUBDIRS = man
59
 
BUILDDIRS = $(patsubst %,build-%,$(SUBDIRS))
60
 
INSTALLDIRS = $(patsubst %,install-%,$(SUBDIRS))
 
59
SUBDIRS =
 
60
BUILDDIRS = $(patsubst %,build-%,$(SUBDIRS)) build-Documentation
 
61
INSTALLDIRS = $(patsubst %,install-%,$(SUBDIRS)) install-Documentation
61
62
CLEANDIRS = $(patsubst %,clean-%,$(SUBDIRS))
62
63
 
63
64
.PHONY: $(SUBDIRS)
119
120
        @echo "    [CC]     $@"
120
121
        $(Q)$(CC) $(AM_CFLAGS) $(STATIC_CFLAGS) -c $< -o $@
121
122
 
122
 
all: $(progs) manpages $(BUILDDIRS)
 
123
all: $(progs) $(BUILDDIRS)
123
124
$(SUBDIRS): $(BUILDDIRS)
124
125
$(BUILDDIRS):
125
126
        @echo "Making all in $(patsubst build-%,%,$@)"
220
221
        $(Q)$(CC) $(CFLAGS) -o send-test $(objects) send-test.o $(LDFLAGS) $(LIBS) -lpthread
221
222
 
222
223
manpages:
223
 
        $(Q)$(MAKE) $(MAKEOPTS) -C man
 
224
        $(Q)$(MAKE) $(MAKEOPTS) -C Documentation
 
225
 
 
226
clean-all: clean-doc clean
224
227
 
225
228
clean: $(CLEANDIRS)
226
229
        @echo "Cleaning"
230
233
              version.h $(check_defs) \
231
234
              $(libs) $(lib_links)
232
235
 
 
236
clean-doc:
 
237
        @echo "Cleaning Documentation"
 
238
        $(Q)$(MAKE) $(MAKEOPTS) -C Documentation clean
 
239
 
233
240
$(CLEANDIRS):
234
241
        @echo "Cleaning $(patsubst clean-%,%,$@)"
235
242
        $(Q)$(MAKE) $(MAKEOPTS) -C $(patsubst clean-%,%,$@) clean
250
257
        @echo "Making install in $(patsubst install-%,%,$@)"
251
258
        $(Q)$(MAKE) $(MAKEOPTS) -C $(patsubst install-%,%,$@) install
252
259
 
 
260
uninstall:
 
261
        $(Q)$(MAKE) $(MAKEOPTS) -C Documentation uninstall
 
262
        cd $(DESTDIR)$(incdir); rm -f $(headers)
 
263
        rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(incdir)
 
264
        cd $(DESTDIR)$(libdir); rm -f $(lib_links) $(libs)
 
265
        cd $(DESTDIR)$(bindir); rm -f btrfsck fsck.btrfs $(progs)
 
266
 
253
267
ifneq ($(MAKECMDGOALS),clean)
254
268
-include $(objects:.o=.o.d) $(cmd-objects:.o=.o.d) $(subst .btrfs,, $(filter-out btrfsck.o.d, $(progs:=.o.d)))
255
269
endif