Skip to content
Snippets Groups Projects
Commit 10e560a9 authored by Yorhel's avatar Yorhel
Browse files

Use top-level automake build + removed AUTHORS, INSTALL and NEWS

A more modern and practical structure.
parent ae659d51
No related branches found
No related tags found
No related merge requests found
ncdu is written by Yoran Heling <projects@yorhel.nl>
The khash library is written by Attractive Chaos <attractor@live.co.uk>.
The usual:
./configure --prefix=/usr
make
make install
SUBDIRS = src doc bin_PROGRAMS=ncdu
ncdu_SOURCES=\
src/browser.c\
src/calc.c\
src/delete.c\
src/dirlist.c\
src/exclude.c\
src/help.c\
src/main.c\
src/path.c\
src/util.c
noinst_HEADERS=\
src/browser.h\
src/calc.h\
src/delete.h\
src/dirlist.h\
src/exclude.h\
src/global.h\
src/help.h\
src/khash.h\
src/path.h\
src/util.h
man_MANS=ncdu.1
EXTRA_DIST=ncdu.1 doc/ncdu.pod
# Don't "clean" ncdu.1, it should be in the tarball so that pod2man isn't a
# build dependency for those who use the tarball.
ncdu.1: $(srcdir)/doc/ncdu.pod Makefile
pod2man --center "ncdu manual" --release "@PACKAGE@-@VERSION@" "$(srcdir)/doc/ncdu.pod" >ncdu.1
ChangeLog
\ No newline at end of file
...@@ -25,6 +25,12 @@ INSTALL ...@@ -25,6 +25,12 @@ INSTALL
make make
make install make install
If you're building directly from the git repository, make sure you have perl
(or rather, pod2man) and GNU autoconf/automake installed, then run
'autoreconf -i', and you're ready to continue with the usual ./configure and
make route.
COPYING COPYING
Copyright (c) 2007-2012 Yoran Heling Copyright (c) 2007-2012 Yoran Heling
......
# autogen.sh - creates configure scripts and more
# requires autoconf
aclocal
autoheader
automake -a
autoconf
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
AC_INIT(ncdu, 1.8g, projects@yorhel.nl) AC_INIT(ncdu, 1.8g, projects@yorhel.nl)
AC_CONFIG_SRCDIR([src/global.h]) AC_CONFIG_SRCDIR([src/global.h])
AC_CONFIG_HEADER([config.h]) AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE AM_INIT_AUTOMAKE([foreign subdir-objects])
# Check for programs. # Check for programs.
AC_PROG_CC AC_PROG_CC
...@@ -47,7 +47,5 @@ AC_CHECK_LIB([$ncurses], ...@@ -47,7 +47,5 @@ AC_CHECK_LIB([$ncurses],
AC_OUTPUT([Makefile src/Makefile doc/Makefile]) AC_OUTPUT([Makefile])
echo ""
echo "Now type \"make\" and \"make install\" to build and install ncdu"
man_MANS = ncdu.1
EXTRA_DIST = ncdu.1 ncdu.pod
# Don't "clean" ncdu.1, it should be in the tarball so that pod2man isn't a
# build dependency for those who use the tarball.
ncdu.1: ncdu.pod Makefile
pod2man --center "ncdu manual" --release "@PACKAGE@-@VERSION@" ncdu.pod >ncdu.1
bin_PROGRAMS = ncdu
ncdu_SOURCES = browser.c calc.c delete.c dirlist.c exclude.c help.c main.c path.c util.c
noinst_HEADERS = browser.h calc.h delete.h dirlist.h exclude.h global.h help.h path.h util.h khash.h
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment