summaryrefslogtreecommitdiff
path: root/parted/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* parted: Add --json cmdline switch to output JSONArvin Schnell2021-08-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This outputs the disk's details as a JSON object. eg. a disk image with a single partition from 1M to 100M: { "disk": { "path": "/root/disk1.img", "size": "2097152s", "model": "", "transport": "file", "logical-sector-size": 512, "physical-sector-size": 512, "label": "gpt", "max-partitions": 128, "partitions": [ { "number": 0, "start": "34s", "end": "2047s", "size": "2014s", "type": "free" },{ "number": 1, "start": "2048s", "end": "200703s", "size": "198656s", "type": "primary", "name": "root" },{ "number": 0, "start": "200704s", "end": "2097118s", "size": "1896415s", "type": "free" } ] } } Signed-off-by: Brian C. Lane <bcl@redhat.com>
* build: prefer $(AM_CPPFLAGS) over $(INCLUDES)Stefano Lattarini2012-08-301-1/+1
| | | | | | | | | | | | | | | The latter is obsolete, and might be removed in future Automake versions. Moreover, it's already been removed in Automake-NG, so its use would make a port to Automake-NG more difficult. * parted/Makefile.am (INCLUDES): Rename ... (AM_CPPFLAGS): ... like this. * partprobe/Makefile.am: Likewise. * libparted/fs/Makefile.am: Likewise. * libparted/Makefile.am: Likewise. * libparted/labels/Makefile.am: Likewise. Copyright-paperwork-exempt: yes
* build: insert -I$(top_builddir)/include before -I$(top_srcdir)/includeKeshav P R2012-01-101-1/+2
| | | | | | | | | | | | | everywhere, for those who perform non-srcdir builds from a pristine cloned directory. There is no problem when building from a tarball, since that includes include/parted/*.h files under $(top_srcdir). * libparted/Makefile.am: Insert it. * libparted/fs/Makefile.am: Likewise. * libparted/labels/Makefile.am: Likewise. * libparted/tests/Makefile.am: Likewise. * parted/Makefile.am: Likewise. * partprobe/Makefile.am: Likewise. * tests/Makefile.am: Likewise.
* build: don't let parted_CFLAGS override our AM_CFLAGS settingJim Meyering2011-03-161-3/+0
| | | | | * parted/Makefile.am (parted_CFLAGS): Remove unused (and interfering) definition.
* ui: get version number from a separately-compiled fileJim Meyering2010-04-271-1/+25
| | | | | | | | | | * parted/Makefile.am (version.c, version.h): Generate. (parted_LDADD): Add libver.a. (noinst_LIBRARIES, nodist_libver_a_SOURCES): Define. (BUILT_SOURCES): Initialize and append. (MAINTAINERCLEANFILES): Update. * parted/parted.c: Include "version.h". (_version): Use the new global variable, Version, not VERSION.
* build: prepare for gnulib's updated lib-ignoreJim Meyering2010-03-301-0/+3
| | | | | * parted/Makefile.am (parted_LDFLAGS): Now that we're using gnulib's newer lib-ignore, add $(IGNORE_UNUSED_LIBRARIES_CFLAGS).
* build: enable many warningsJim Meyering2009-07-241-0/+1
| | | | | | | | | | | | * configure.ac: New configure-time option: --enable-gcc-warnings. * bootstrap.conf: Use gnulib modules: warnings manywarnings. * debug/Makefile.am: Define AM_CFLAGS. * libparted/Makefile.am: Likewise. * libparted/tests/Makefile.am: Likewise. * parted/Makefile.am: Likewise. * partprobe/Makefile.am: Likewise. * debug/clearfat/Makefile.am: Likewise. * libparted/labels/Makefile.am: Likewise.
* libparted: link with gnulibJim Meyering2009-06-031-1/+0
| | | | | | | | | | | | | * libparted/Makefile.am (libparted_la_LIBADD): Add $(top_builddir)/lib/libparted.la to the list. * partprobe/Makefile.am (partprobe_LDADD): Remove now-unneeded $(top_builddir)/lib/libparted.la. * libparted/tests/Makefile.am (LDADD): Remove now-unneeded $(top_builddir)/lib/libparted.la. * debug/clearfat/Makefile.am (clearfat_LDADD): Likewise. * parted/Makefile.am (parted_LDADD): Likewise. Otavio Salvador reported that linking with the resulting shared library produced an unresolved reference to last_component.
* portability: use last_component, not basenameJim Meyering2009-03-051-1/+1
| | | | | | | | | | | * libparted/arch/linux.c (read_device_sysfs_file): Use last_component from gnulib's basename module, not the less-portable "basename" function. (_device_get_partition_range): Likewise. Reported by Karel Zak. * debug/clearfat/Makefile.am (clearfat_LDADD): Link gnulib *after* libparted, not before. * partprobe/Makefile.am (partprobe_LDADD): Likewise. * parted/Makefile.am (parted_LDADD): Likewise.
* Use $(VAR), rather than obsolescent @VAR@ automake notation.Jim Meyering2007-03-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable the makefile-check rule. * Makefile.cfg: Remove makefile-check from the list of rules to skip. * Makefile.am: change e.g., @VERSION@ to $(VERSION). * debug/clearfat/Makefile.am: Likewise. * libparted/Makefile.am: Likewise. * libparted/fs/Makefile.am: Likewise. * libparted/fs/amiga/Makefile.am: Likewise. * libparted/fs/bfs/Makefile.am: Likewise. * libparted/fs/ext2/Makefile.am: Likewise. * libparted/fs/fat/Makefile.am: Likewise. * libparted/fs/hfs/Makefile.am: Likewise. * libparted/fs/jfs/Makefile.am: Likewise. * libparted/fs/linux_swap/Makefile.am: Likewise. * libparted/fs/ntfs/Makefile.am: Likewise. * libparted/fs/reiserfs/Makefile.am: Likewise. * libparted/fs/ufs/Makefile.am: Likewise. * libparted/fs/xfs/Makefile.am: Likewise. * libparted/labels/Makefile.am: Likewise. * libparted/tests/Makefile.am: Likewise. * parted/Makefile.am: Likewise. * partprobe/Makefile.am: Likewise. The above conversion caused a problem: * libparted/Makefile.am: Remove this recursive definition: LIBS = @INTLLIBS@ @LIBS@. Once converted to LIBS = ...$(LIBS), GNU make would (rightly) fail, objecting to the recursive definition. (libparted_la_LIBADD): Instead, add $(INTLLIBS) here.
* Begin adjusting Makefile.am files to use gnulib.Jim Meyering2007-02-251-3/+6
| | | | | | * libparted/Makefile.am (partedincludedir): Add -I$(top_srcdir)/lib. * parted/Makefile.am (parted_LDADD): Add lib/libparted.la. (partedincludedir): Add -I$(top_srcdir)/lib.
* Introduced MAINTAINERCLEANFILES in Makefile.am for carrying out 'make ↵Debarshi Ray2007-02-191-0/+1
| | | | maintainer-clean'.
* Fix ChangeLogAnant Narayanan2006-09-141-0/+24
git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@820 2d424fd7-7fe2-0310-af74-8bc65edeb173