diff options
author | Antti-Juhani Kaijanaho <ajk@debian.org> | 2006-10-26 22:33:50 +0100 |
---|---|---|
committer | Antti-Juhani Kaijanaho <ajk@debian.org> | 2006-10-26 22:33:50 +0100 |
commit | f761dc59127e5eebd68d36f9810cad1e89fbd3c8 (patch) | |
tree | 0958ab4c7c1093aee08c7fbf788cbc20735933b7 | |
parent | a599e0d1b8aff9015525059c32d59f4b93b3db4f (diff) | |
download | dctrl-tools-f761dc59127e5eebd68d36f9810cad1e89fbd3c8.tar.gz |
create lib/, man/ and $(program)/
-rw-r--r-- | Makefile | 36 | ||||
-rw-r--r-- | debian/rules | 18 | ||||
-rw-r--r-- | grep-dctrl/grep-dctrl.c (renamed from grep-dctrl.c) | 0 | ||||
-rw-r--r-- | grep-dctrl/grep-dctrl.rc (renamed from grep-dctrl.rc) | 0 | ||||
-rw-r--r-- | grep-dctrl/rc.c (renamed from rc.c) | 0 | ||||
-rw-r--r-- | grep-dctrl/rc.h (renamed from rc.h) | 0 | ||||
-rw-r--r-- | lib/align.h (renamed from align.h) | 0 | ||||
-rw-r--r-- | lib/fieldtrie.c (renamed from fieldtrie.c) | 0 | ||||
-rw-r--r-- | lib/fieldtrie.h (renamed from fieldtrie.h) | 0 | ||||
-rw-r--r-- | lib/fnutil.c (renamed from fnutil.c) | 0 | ||||
-rw-r--r-- | lib/fnutil.h (renamed from fnutil.h) | 0 | ||||
-rw-r--r-- | lib/fsaf.c (renamed from fsaf.c) | 0 | ||||
-rw-r--r-- | lib/fsaf.h (renamed from fsaf.h) | 0 | ||||
-rw-r--r-- | lib/getaline.c (renamed from getaline.c) | 0 | ||||
-rw-r--r-- | lib/getaline.h (renamed from getaline.h) | 0 | ||||
-rw-r--r-- | lib/i18n.h (renamed from i18n.h) | 0 | ||||
-rw-r--r-- | lib/ifile.c (renamed from ifile.c) | 0 | ||||
-rw-r--r-- | lib/ifile.h (renamed from ifile.h) | 0 | ||||
-rw-r--r-- | lib/misc.c (renamed from misc.c) | 0 | ||||
-rw-r--r-- | lib/misc.h (renamed from misc.h) | 0 | ||||
-rw-r--r-- | lib/msg.c (renamed from msg.c) | 0 | ||||
-rw-r--r-- | lib/msg.h (renamed from msg.h) | 0 | ||||
-rw-r--r-- | lib/para_bundle.c (renamed from para_bundle.c) | 0 | ||||
-rw-r--r-- | lib/para_bundle.h (renamed from para_bundle.h) | 0 | ||||
-rw-r--r-- | lib/para_pool.c (renamed from para_pool.c) | 0 | ||||
-rw-r--r-- | lib/para_pool.h (renamed from para_pool.h) | 0 | ||||
-rw-r--r-- | lib/paragraph.c (renamed from paragraph.c) | 0 | ||||
-rw-r--r-- | lib/paragraph.h (renamed from paragraph.h) | 0 | ||||
-rw-r--r-- | lib/predicate.c (renamed from predicate.c) | 0 | ||||
-rw-r--r-- | lib/predicate.h (renamed from predicate.h) | 0 | ||||
-rw-r--r-- | lib/sorter.c (renamed from sorter.c) | 0 | ||||
-rw-r--r-- | lib/sorter.h (renamed from sorter.h) | 0 | ||||
-rw-r--r-- | lib/strutil.c (renamed from strutil.c) | 0 | ||||
-rw-r--r-- | lib/strutil.h (renamed from strutil.h) | 0 | ||||
-rw-r--r-- | lib/util.c (renamed from util.c) | 0 | ||||
-rw-r--r-- | lib/util.h (renamed from util.h) | 0 | ||||
-rw-r--r-- | lib/version.c (renamed from version.c) | 0 | ||||
-rw-r--r-- | lib/version.h (renamed from version.h) | 0 | ||||
-rw-r--r-- | man/grep-dctrl.1.cp (renamed from grep-dctrl.1.cp) | 0 | ||||
-rw-r--r-- | man/sort-dctrl.1.cp (renamed from sort-dctrl.1.cp) | 0 | ||||
-rw-r--r-- | man/sync-available.8 (renamed from sync-available.8) | 0 | ||||
-rw-r--r-- | man/tbl-dctrl.1 (renamed from tbl-dctrl.1) | 0 | ||||
-rw-r--r-- | sort-dctrl/sort-dctrl.c (renamed from sort-dctrl.c) | 0 | ||||
-rw-r--r-- | sync-available/sync-available.cp (renamed from sync-available.cp) | 0 | ||||
-rw-r--r-- | tbl-dctrl/tbl-dctrl.c (renamed from tbl-dctrl.c) | 0 |
45 files changed, 31 insertions, 23 deletions
@@ -4,7 +4,8 @@ localedir = /usr/share/locale version := $(shell dpkg-parsechangelog | grep '^Version' | cut -b10-) CC = gcc -std=gnu99 -CFLAGS = -g -Wall -DENABLE_L_DEBUG -D_GNU_SOURCE -DSYSCONF=\"$(sysconfdir)\" \ +CFLAGS = -g -Wall -Ilib \ + -DENABLE_L_DEBUG -D_GNU_SOURCE -DSYSCONF=\"$(sysconfdir)\" \ -DHAVE_GETTEXT -DPACKAGE=\"dctrl-tools\" -DLOCALEDIR=\"$(localedir)\" CFLAGS += -DVERSION=\"$(version)\" @@ -15,12 +16,17 @@ CFLAGS += -DMAINTAINER='"$(shell grep ^Maintainer: debian/control | cut -b13-)"' #CFLAGS += -pg #LDFLAGS += -pg -libobj = misc.o msg.o predicate.o util.o fsaf.o paragraph.o \ - fieldtrie.o rc.o strutil.o getaline.o fnutil.o para_pool.o \ - ifile.o para_bundle.o sorter.o version.o +libsrc = $(wildcard lib/*.c) +libobj = $(libsrc:.c=.o) -obj = $(libobj) grep-dctrl.o sort-dctrl.o tbl-dctrl.o -src = $(obj:.o=.c) +src = $(libsrc) \ + $(wildcard grep-dctrl/*.c) \ + $(wildcard sort-dctrl/*.c) \ + $(wildcard tbl-dctrl/*.c) + +exe = grep-dctrl/grep-dctrl \ + sort-dctrl/sort-dctrl \ + tbl-dctrl/tbl-dctrl LDLIBS = -L. -ldctrl @@ -29,8 +35,10 @@ include langs.mk all : all-no-mo mo -all-no-mo : grep-dctrl sort-dctrl tbl-dctrl sync-available \ - grep-dctrl.1 sort-dctrl.1 +all-no-mo : sync-available/sync-available \ + man/grep-dctrl.1 \ + man/sort-dctrl.1 \ + $(exe) pot : po/dctrl-tools.pot @@ -38,14 +46,14 @@ po : $(foreach f,$(langs),po/$(f).po) mo : $(foreach f,$(langs),po/$(f).mo) -grep-dctrl : grep-dctrl.o libdctrl.a +grep-dctrl/grep-dctrl : grep-dctrl/grep-dctrl.o grep-dctrl/rc.o libdctrl.a -sort-dctrl : sort-dctrl.o libdctrl.a +sort-dctrl/sort-dctrl : sort-dctrl/sort-dctrl.o libdctrl.a -tbl-dctrl : tbl-dctrl.o libdctrl.a +tbl-dctrl/tbl-dctrl : tbl-dctrl/tbl-dctrl.o libdctrl.a % : %.o - $(CC) $(LDFLAGS) -o $@ $< $(LDLIBS) + $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) %.d: %.c $(CC) -M $(CPPFLAGS) $< > $@.$$$$; \ @@ -71,7 +79,7 @@ so/%.o : %.c %.1 : %.1.cp sed 's*SYSCONF*$(sysconf)*' $< > $@ -sync-available : sync-available.cp +sync-available/sync-available : sync-available/sync-available.cp sed 's*VERSION*$(version)*' $< > $@ chmod 755 $@ @@ -91,7 +99,7 @@ po/dctrl-tools.pot : $(src) fsaf.test : fsaf.test.o msg.o clean : - $(RM) core grep-dctrl grep-dctrl.1 *.o so/*.o libdctrl.a libdctrl.so + $(RM) core $(exe) grep-dctrl.1 $(obj) so/*.o libdctrl.a libdctrl.so $(RM) po/*.mo TAGS *.d $(RM) sync-available diff --git a/debian/rules b/debian/rules index 7f114d2..8f77b2a 100644 --- a/debian/rules +++ b/debian/rules @@ -46,27 +46,27 @@ debian/stamp/binary/dctrl-tools: debian/stamp/build # mandir=$(mandir) install # Install configuration file $(install_dir) $(etcdir) - $(install_nonex) grep-dctrl.rc $(etcdir) + $(install_nonex) grep-dctrl/grep-dctrl.rc $(etcdir) # Install the binaries. $(install_dir) $(sbindir) - $(install_script) sync-available $(sbindir) + $(install_script) sync-available/sync-available $(sbindir) $(install_dir) $(bindir) - $(install_exec) tbl-dctrl $(bindir) - $(install_exec) sort-dctrl $(bindir) - $(install_exec) grep-dctrl $(bindir) + $(install_exec) tbl-dctrl/tbl-dctrl $(bindir) + $(install_exec) sort-dctrl/sort-dctrl $(bindir) + $(install_exec) grep-dctrl/grep-dctrl $(bindir) set -e ; for dest in $(aliases) ; do \ $(install_symlink) grep-dctrl $(bindir)/$$dest ; \ done # Install and zip the manual pages. $(install_dir) $(man8dir) - $(install_nonex) sync-available.8 $(man8dir)/ + $(install_nonex) man/sync-available.8 $(man8dir)/ $(gzip) $(man8dir)/sync-available.8 $(install_dir) $(man1dir) - $(install_nonex) sort-dctrl.1 $(man1dir)/ + $(install_nonex) man/sort-dctrl.1 $(man1dir)/ $(gzip) $(man1dir)/sort-dctrl.1 - $(install_nonex) tbl-dctrl.1 $(man1dir)/ + $(install_nonex) man/tbl-dctrl.1 $(man1dir)/ $(gzip) $(man1dir)/tbl-dctrl.1 - $(install_nonex) grep-dctrl.1 $(man1dir)/ + $(install_nonex) man/grep-dctrl.1 $(man1dir)/ $(gzip) $(man1dir)/grep-dctrl.1 set -e ; for dest in $(aliases) ; do \ $(install_symlink) grep-dctrl.1.gz $(man1dir)/$$dest.1.gz ; \ diff --git a/grep-dctrl.c b/grep-dctrl/grep-dctrl.c index 687f8cf..687f8cf 100644 --- a/grep-dctrl.c +++ b/grep-dctrl/grep-dctrl.c diff --git a/grep-dctrl.rc b/grep-dctrl/grep-dctrl.rc index 31e03b5..31e03b5 100644 --- a/grep-dctrl.rc +++ b/grep-dctrl/grep-dctrl.rc diff --git a/fieldtrie.c b/lib/fieldtrie.c index 250fc89..250fc89 100644 --- a/fieldtrie.c +++ b/lib/fieldtrie.c diff --git a/fieldtrie.h b/lib/fieldtrie.h index 0e1c634..0e1c634 100644 --- a/fieldtrie.h +++ b/lib/fieldtrie.h diff --git a/getaline.c b/lib/getaline.c index df02498..df02498 100644 --- a/getaline.c +++ b/lib/getaline.c diff --git a/getaline.h b/lib/getaline.h index e7f60d1..e7f60d1 100644 --- a/getaline.h +++ b/lib/getaline.h diff --git a/para_bundle.c b/lib/para_bundle.c index d52edbf..d52edbf 100644 --- a/para_bundle.c +++ b/lib/para_bundle.c diff --git a/para_bundle.h b/lib/para_bundle.h index 2cb8a63..2cb8a63 100644 --- a/para_bundle.h +++ b/lib/para_bundle.h diff --git a/para_pool.c b/lib/para_pool.c index eb907ac..eb907ac 100644 --- a/para_pool.c +++ b/lib/para_pool.c diff --git a/para_pool.h b/lib/para_pool.h index 9ec37f5..9ec37f5 100644 --- a/para_pool.h +++ b/lib/para_pool.h diff --git a/paragraph.c b/lib/paragraph.c index 5dc06a4..5dc06a4 100644 --- a/paragraph.c +++ b/lib/paragraph.c diff --git a/paragraph.h b/lib/paragraph.h index b3daafc..b3daafc 100644 --- a/paragraph.h +++ b/lib/paragraph.h diff --git a/predicate.c b/lib/predicate.c index 67614cc..67614cc 100644 --- a/predicate.c +++ b/lib/predicate.c diff --git a/predicate.h b/lib/predicate.h index 5860b6f..5860b6f 100644 --- a/predicate.h +++ b/lib/predicate.h diff --git a/strutil.c b/lib/strutil.c index 585abc1..585abc1 100644 --- a/strutil.c +++ b/lib/strutil.c diff --git a/strutil.h b/lib/strutil.h index 431e9e1..431e9e1 100644 --- a/strutil.h +++ b/lib/strutil.h diff --git a/version.c b/lib/version.c index 624e089..624e089 100644 --- a/version.c +++ b/lib/version.c diff --git a/version.h b/lib/version.h index 90aaf9d..90aaf9d 100644 --- a/version.h +++ b/lib/version.h diff --git a/grep-dctrl.1.cp b/man/grep-dctrl.1.cp index bfa50c2..bfa50c2 100644 --- a/grep-dctrl.1.cp +++ b/man/grep-dctrl.1.cp diff --git a/sort-dctrl.1.cp b/man/sort-dctrl.1.cp index 225cbd3..225cbd3 100644 --- a/sort-dctrl.1.cp +++ b/man/sort-dctrl.1.cp diff --git a/sync-available.8 b/man/sync-available.8 index a8fbbf9..a8fbbf9 100644 --- a/sync-available.8 +++ b/man/sync-available.8 diff --git a/tbl-dctrl.1 b/man/tbl-dctrl.1 index cca74ee..cca74ee 100644 --- a/tbl-dctrl.1 +++ b/man/tbl-dctrl.1 diff --git a/sort-dctrl.c b/sort-dctrl/sort-dctrl.c index 725687c..725687c 100644 --- a/sort-dctrl.c +++ b/sort-dctrl/sort-dctrl.c diff --git a/sync-available.cp b/sync-available/sync-available.cp index c833ac2..c833ac2 100644 --- a/sync-available.cp +++ b/sync-available/sync-available.cp diff --git a/tbl-dctrl.c b/tbl-dctrl/tbl-dctrl.c index 0fca2ea..0fca2ea 100644 --- a/tbl-dctrl.c +++ b/tbl-dctrl/tbl-dctrl.c |