head 1.4; access; symbols ISELECT_1_4_0:1.4 ISELECT_1_3_1:1.4 ISELECT_1_3_0:1.4 ISELECT_1_2_0:1.1.1.4 ISELECT_1_1_0:1.1.1.3 ISELECT_1_0_4:1.1.1.2 ISELECT_1_0_0:1.1.1.1 vendor:1.1.1; locks; strict; comment @# @; 1.4 date 2004.09.11.15.24.05; author rse; state Exp; branches; next 1.3; 1.3 date 2004.09.11.15.18.49; author rse; state Exp; branches; next 1.2; 1.2 date 2000.07.25.11.53.24; author rse; state Exp; branches; next 1.1; 1.1 date 97.09.17.07.11.34; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 97.09.17.07.11.34; author rse; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 97.10.30.09.39.56; author rse; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 98.01.05.15.07.29; author rse; state Exp; branches; next 1.1.1.4; 1.1.1.4 date 99.03.31.06.49.32; author rse; state Exp; branches; next ; desc @@ 1.4 log @more cosmetics @ text @## ## Makefile -- iSelect Makefile ## @@SET_MAKE@@ # ------------------------------------------------ # DEFINITIONS # ------------------------------------------------ # compiler tools CC = @@CC@@ CFLAGS = @@CFLAGS@@ -I. LDFLAGS = @@LDFLAGS@@ LIBS = @@LIBS@@ debug = @@debug@@ # installation tools SHTOOL = @@SHTOOL@@ # installation paths prefix = @@prefix@@ exec_prefix = @@exec_prefix@@ bindir = @@bindir@@ mandir = ${exec_prefix}/man # ------------------------------------------------ # THE DEFAULT TARGETS # ------------------------------------------------ all: config iselect iselect.1 # ------------------------------------------------ # THE CONFIGURATION SUPPORT # ------------------------------------------------ config: configure config_ac.h.in configure: configure.in aclocal.m4 rm -f configure autoconf configure.in >configure chmod 770 configure config_ac.h.in: configure.in rm -f config_ac.h.in autoheader configure.in >config_ac.h.in # ------------------------------------------------ # THE RELEASE STUFF # ------------------------------------------------ _VERSION_FILE = \ iselect_version.c _VERSION = \ echo "updating package version"; \ $(SHTOOL) version -lc -n 'iSelect' -p iselect_ $$OPT $(_VERSION_FILE); \ V=`$(SHTOOL) version -lc -dlong $(_VERSION_FILE)`; \ sed -e "s/Version .*(.*)/Version $$V/g" README.n && mv README.n README; \ sed -e "s/Version .*(.*)/Version $$V/g" iselect_readme.txt.n && mv iselect_readme.txt.n iselect_readme.txt _TARBALL = \ $(SHTOOL) tarball -o $${NAME}.tar.gz -d $${NAME} -u ossp -g iselect \ -e 'CVS,\.cvsignore,\.configure,\.\#.*,\.[ao]$$' -c 'gzip --best' . dist: distclean fixperm @@V=`$(SHTOOL) version -l c -d short $(_VERSION_FILE)`; NAME="iselect-$$V"; \ $(ECHO) "Rolling RELEASE tarball $$NAME.tar.gz"; $(_TARBALL) snap: distclean fixperm @@V=`$(SHTOOL) version -l c -d short $(_VERSION_FILE)`; NAME="iselect-$$V-SNAP"; \ $(ECHO) "Rolling SNAPSHOT tarball $$NAME.tar.gz"; $(_TARBALL) new-version: @@V="$(VERSION)"; \ if [ ".$$V" != . ]; then \ OPT="-s$$V"; \ else \ OPT="-e"; \ fi; \ $(_VERSION) update-version: @@OPT="-s`$(SHTOOL) version -lc -dshort $(_VERSION_FILE)`" && $(_VERSION) fixperm: $(SHTOOL) fixperm * # ------------------------------------------------ # THE PROGRAM # ------------------------------------------------ iselect: iselect_main.o iselect_browse.o iselect_keys.o iselect_getopt.o iselect_version.o iselect_help.o iselect_readme.o $(CC) $(LDFLAGS) -o iselect iselect_main.o iselect_browse.o iselect_keys.o iselect_getopt.o iselect_version.o iselect_help.o iselect_readme.o @@LIBS@@ iselect_main.o: iselect_main.c $(CC) $(CFLAGS) -o iselect_main.o -c iselect_main.c iselect_browse.o: iselect_browse.c $(CC) $(CFLAGS) -o iselect_browse.o -c iselect_browse.c iselect_keys.o: iselect_keys.c $(CC) $(CFLAGS) -o iselect_keys.o -c iselect_keys.c iselect_getopt.o: iselect_getopt.c $(CC) $(CFLAGS) -o iselect_getopt.o -c iselect_getopt.c iselect_version.o: iselect_version.c $(CC) $(CFLAGS) -o iselect_version.o -c iselect_version.c iselect_help.o: iselect_help.c $(CC) $(CFLAGS) -o iselect_help.o -c iselect_help.c iselect_help.c: iselect_help.txt iselect_version.c V=`$(SHTOOL) version -l c -d long iselect_version.c`; \ ./etc/asc2c iselect_help.txt iselect_help iSelect_Help "$$V" iselect_readme.o: iselect_readme.c $(CC) $(CFLAGS) -o iselect_readme.o -c iselect_readme.c iselect_readme.c: iselect_readme.txt iselect_version.c V=`$(SHTOOL) version -l c -d long iselect_version.c`; \ ./etc/asc2c iselect_readme.txt iselect_readme iSelect_README "$$V" # ------------------------------------------------ # THE DOCUMENTATION # ------------------------------------------------ iselect.1: iselect.pod iselect_version.c V=`$(SHTOOL) version -l c -d long iselect_version.c`; \ sed -e "s|\@@V\@@|$$V|g" \ /tmp/iselect.pod; \ pod2man --section=1 \ --center="Ralf S. Engelschall" \ --release="EN" \ /tmp/iselect.pod >iselect.1 && \ rm -f /tmp/iselect.pod # ------------------------------------------------ # INSTALLATION # ------------------------------------------------ install: all $(SHTOOL) mkdir -f -p -m 755 $(bindir) $(SHTOOL) mkdir -f -p -m 755 $(mandir)/man1 $(SHTOOL) install -c -m 755 -s iselect $(bindir)/iselect $(SHTOOL) install -c -m 644 iselect.1 $(mandir)/man1/iselect.1 # ------------------------------------------------ # CLEANUP # ------------------------------------------------ clean: -rm -f *.o -rm -f iselect -rm -f core *.core distclean: clean -rm -f config_ac.h config_sc.h -rm -f config.status config.cache config.log -rm -f Makefile ##EOF## @ 1.3 log @modernize source tree @ text @d62 1 a62 1 $(SHTOOL) tarball -o $${NAME}.tar.gz -d $${NAME} -u rse -g en \ @ 1.2 log @Merge in pending changes @ text @a18 4 NEWVERS = $(SHTOOL) version INSTALL = $(SHTOOL) install MKDIR = $(SHTOOL) mkdir FIXPERM = $(SHTOOL) fixperm d38 1 a38 1 configure: configure.in aclocal.m4 acconfig.h d43 1 a43 1 config_ac.h.in: configure.in acconfig.h d51 2 a52 19 _GETDISTINFO = \ _version=`$(NEWVERS) -lc -dshort iselect_version.c`; \ _date=`date '+%y%m%d_%H%M'` _BUILDDIST = \ echo "Creating tarball..."; \ tar cvf - * |\ tardy --user_number=1000 --user_name=rse \ --group_number=1000 --group_name=en \ --prefix=$${_distname} - |\ gzip >$${_tarball}; \ echo "Done"; \ ls -l $${_tarball} _NEWVERS = \ $(NEWVERS) -lc -piSelect $$OPT iselect_version.c; \ V=`$(NEWVERS) -lc -dlong iselect_version.c`;\ sed -e "s/Version .*(.*)/Version $$V/g" README.n && mv README.n README; \ sed -e "s/Version .*(.*)/Version $$V/g" iselect_readme.txt.n && mv iselect_readme.txt.n iselect_readme.txt; d54 4 a57 4 _UPDATEVERS = \ V=`$(NEWVERS) -lc -dshort iselect_version.c`;\ $(NEWVERS) -lc -piSelect -s $$V iselect_version.c; \ V=`$(NEWVERS) -lc -dlong iselect_version.c`;\ d59 1 a59 9 sed -e "s/Version .*(.*)/Version $$V/g" iselect_readme.txt.n && mv iselect_readme.txt.n iselect_readme.txt; release: distclean fixperm @@$(_GETDISTINFO) \ _distname="iselect-$${_version}"; \ _tarball="/tmp/$${_distname}.tar.gz"; \ echo "Release Distribution: iSelect Version $$_version"; \ $(_BUILDDIST); \ mv /tmp/$${_distname}.tar.gz $${_distname}.tar.gz; \ d61 7 d69 2 a70 6 @@$(_GETDISTINFO) \ _distname="iselect-$${_version}-SNAP-$$_date"; \ _tarball="/tmp/$${_distname}.tar.gz"; \ echo "Snap of whole source tree: iSelect Version $$_version as of $$_date"; \ $(_BUILDDIST); \ mv /tmp/$${_distname}.tar.gz $${_distname}.tar.gz d73 7 a79 9 OPT="-iv"; $(_NEWVERS) new-revision: OPT="-ir"; $(_NEWVERS) new-betalevel: OPT="-ib"; $(_NEWVERS) new-patchlevel: OPT="-iP"; $(_NEWVERS) new-release: OPT="-s$(R)"; $(_NEWVERS) d81 1 a81 1 $(_UPDATEVERS) d84 1 a84 1 $(FIXPERM) * d112 1 a112 1 V=`$(NEWVERS) -l c -d long iselect_version.c`; \ d119 1 a119 1 V=`$(NEWVERS) -l c -d long iselect_version.c`; \ d127 1 a127 1 V=`$(NEWVERS) -l c -d long iselect_version.c`; \ d141 4 a144 4 $(MKDIR) $(bindir) $(MKDIR) $(mandir)/man1 $(INSTALL) -c -m 755 -s iselect $(bindir)/iselect $(INSTALL) -c -m 644 iselect.1 $(mandir)/man1/iselect.1 @ 1.1 log @Initial revision @ text @d14 1 d18 5 a22 5 INSTALL = @@INSTALL@@ INSTALL_PROGRAM = @@INSTALL_PROGRAM@@ INSTALL_SCRIPT = @@INSTALL_SCRIPT@@ INSTALL_DATA = @@INSTALL_DATA@@ MKDIR = ./etc/mkinstalldirs d56 1 a56 1 _version=`./etc/newvers -lc -d iselect_version.c`; \ d70 2 a71 2 ./etc/newvers -lc -p iSelect $$OPT iselect_version.c; \ V=`./etc/newvers -lc -D iselect_version.c`;\ d76 3 a78 3 V=`./etc/newvers -lc -d iselect_version.c`;\ ./etc/newvers -lc -p iSelect -r $$V iselect_version.c; \ V=`./etc/newvers -lc -D iselect_version.c`;\ d99 1 a99 2 OPT=-iv; $(_NEWVERS) d101 1 a101 2 OPT=-ir; $(_NEWVERS) d103 1 a103 2 OPT=-ib; $(_NEWVERS) d105 1 a105 2 OPT=-iP; $(_NEWVERS) d107 1 a107 2 OPT=-r$(R); $(_NEWVERS) d112 1 a112 1 ./etc/fixperm * d118 2 a119 2 iselect: iselect_main.o iselect_browse.o iselect_getopt.o iselect_version.o iselect_help.o iselect_readme.o $(CC) $(LDFLAGS) -o iselect iselect_main.o iselect_browse.o iselect_getopt.o iselect_version.o iselect_help.o iselect_readme.o -lncurses d127 3 d140 1 a140 1 V=`./etc/newvers -l c -D iselect_version.c`; \ d147 1 a147 1 V=`./etc/newvers -l c -D iselect_version.c`; \ d155 1 a155 1 V=`./etc/newvers -l c -D iselect_version.c`; \ a169 1 $(MKDIR) $(mandir) d171 2 a172 2 $(INSTALL_PROGRAM) iselect $(bindir)/iselect $(INSTALL_DATA) iselect.1 $(mandir)/man1/iselect.1 d183 1 a183 2 distclean: -@@make clean @ 1.1.1.1 log @Import iSelect 1.0.0 @ text @@ 1.1.1.2 log @Import iSelect 1.0.4 @ text @a13 1 LIBS = @@LIBS@@ d123 1 a123 1 $(CC) $(LDFLAGS) -o iselect iselect_main.o iselect_browse.o iselect_getopt.o iselect_version.o iselect_help.o iselect_readme.o @@LIBS@@ @ 1.1.1.3 log @Import iSelect 1.1.0 @ text @d123 2 a124 2 iselect: iselect_main.o iselect_browse.o iselect_keys.o iselect_getopt.o iselect_version.o iselect_help.o iselect_readme.o $(CC) $(LDFLAGS) -o iselect iselect_main.o iselect_browse.o iselect_keys.o iselect_getopt.o iselect_version.o iselect_help.o iselect_readme.o @@LIBS@@ a130 3 iselect_keys.o: iselect_keys.c $(CC) $(CFLAGS) -o iselect_keys.o -c iselect_keys.c @ 1.1.1.4 log @Import iSelect 1.2.0 @ text @d18 5 a22 5 SHTOOL = @@SHTOOL@@ NEWVERS = $(SHTOOL) newvers INSTALL = $(SHTOOL) install MKDIR = $(SHTOOL) mkdir FIXPERM = $(SHTOOL) fixperm d56 1 a56 1 _version=`$(NEWVERS) -l c -d short iselect_version.c`; \ d70 2 a71 2 $(NEWVERS) -l c -p iSelect $$OPT iselect_version.c; \ V=`$(NEWVERS) -l c -d long iselect_version.c`;\ d76 3 a78 3 V=`$(NEWVERS) -l c -d short iselect_version.c`;\ $(NEWVERS) -l c -p iSelect -r $$V iselect_version.c; \ V=`$(NEWVERS) -l c -d long iselect_version.c`;\ d99 1 a99 1 OPT="-i v"; $(_NEWVERS) d102 1 a102 1 OPT="-i r"; $(_NEWVERS) d105 1 a105 1 OPT="-i b"; $(_NEWVERS) d108 1 a108 1 OPT="-i P"; $(_NEWVERS) d111 1 a111 1 OPT="-r $(R)"; $(_NEWVERS) d117 1 a117 1 $(FIXPERM) * d145 1 a145 1 V=`$(NEWVERS) -l c -d long iselect_version.c`; \ d152 1 a152 1 V=`$(NEWVERS) -l c -d long iselect_version.c`; \ d160 1 a160 1 V=`$(NEWVERS) -l c -d long iselect_version.c`; \ d175 1 d177 2 a178 2 $(INSTALL) -c -m 755 -s iselect $(bindir)/iselect $(INSTALL) -c -m 644 iselect.1 $(mandir)/man1/iselect.1 d189 2 a190 1 distclean: clean @