/* * dnsutl - utilities to make DNS easier to configure * Copyright (C) 1999, 2001, 2004-2007 Peter Miller * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see * . */ if [in [arch] linux-i386] then if [not [defined baseline]] then all += integration-build-targets; integration-build-targets: archive/[project_minus].README archive/[project_minus].lsm archive/[project_minus].pdf archive/[project_minus].spec archive/[project_minus].tar.gz archive/[project_short].png archive/[project_short].ico archive/[project_short].html archive/index.html ; /* * These recipes build a Makefile for a user. They do not build a * Makefile useful for a development build, because no arch * information is included in the Makefile. */ makefile-per-file = [prepost "" ",M" [source_files]]; Makefile.in: etc/Makefile.head etc/Makefile.sh etc/Makefile.awk [vs_file] [makefile-per-file] { if [exists [target]] then rm [target] set clearstat; cat [resolve etc/Makefile.head [makefile-per-file]] > [target]; sh [resolve etc/Makefile.sh] [source_files] | gawk -f [resolve etc/Makefile.awk] >> [target]; } %0%,M: etc/Makefi.file.sh etc/Makefile.awk { depfile = [match_mask %%0%%,Md [need]]; sh [resolve etc/Makefi.file.sh] %0% [resolve %0%] [resolve [depfile]] | gawk -f [resolve etc/Makefile.awk] > [target]; } CHANGES = etc/CHANGES.[version_short]; source_file_order = README [sort [stringset [source_files] [CHANGES] BUILDING LICENSE Makefile.in common/config.h.in common/patchlevel.h configure etc/version.so install-sh [project_minus].spec [project_short].png - README ] ] ; archive/[project_minus].tar.gz: [source_file_order] set shallow { tar cf - [resolve [source_file_order]] | tardy -unu 0 -gnu 0 -una Peter -gna Miller [addprefix "-rp=" [search_list]] -p [project_minus] -ms 0644 -mc 07022 -now > archive/[project_minus].tar; gzip -v archive/[project_minus].tar; } [CHANGES]: etc/CHANGES.sh [vs_file] { sh [resolve etc/CHANGES.sh] [project] > [target]; } archive/[project_minus].README: README set shallow { cp [resolve [need]] [target]; } %0%.y,M:: %0%.gen.c,Md; %0%.c,M:: %0%.c,Md; %1/%0%2.c,Md: %1/%0%2.c { c_incl -nc /* no cache */ -ns /* no system */ -eia /* empty if absent */ [stringset [cc_include_flags] [prepost "-I" "/%1" [search_list]]] [resolve %1/%0%2.c] -nsri /* no source relative includes */ [prepost "-rlp=" "" [search_list]] /* remove leading path */ -rlp [arch] /* remove leading architecture */ -o [target]; } [project_minus].spec: etc/spec.sh [source_files] { version\=[version_short] sh [resolve etc/spec.sh] [source_files] > [target]; } archive/[project_minus].spec: [project_minus].spec set shallow { cat [resolve [need]] > [target]; } archive/[project_minus].pdf: etc/reference.pdf set shallow { cat [resolve [need]] > [target]; } %0%.ico: %0%.16.png %0%.32.png %0%.64.png { png2ico [target] [need]; } %0%1.%2.png: %0%1.png { convert %0%1.png -scale %2 [target]; } archive/%.png: etc/%.png.uue set shallow { uudecode [resolve [need]] -o [target]; } %.png: etc/%.png.uue { uudecode [resolve [need]] -o [target]; } /* * This is not in the integration build taregs because it takes far too * long to do. */ RPM: archive/[project_minus]-1.i386.rpm; archive/[project_minus]-1.i386.rpm archive/[project_minus]-1.src.rpm: archive/[project_minus].tar.gz etc/rpm-build.sh archive/[project_short].gif set shallow { sh [resolve etc/rpm-build.sh] RPM-temporary [resolve archive/[project_minus].tar.gz] [resolve archive/[project_short].gif] ; mv RPM-temporary/RPMS/i386/[project_minus]-1.i386.rpm archive/[project_minus]-1.i386.rpm ; mv RPM-temporary/SRPMS/[project_minus]-1.src.rpm archive/[project_minus]-1.src.rpm ; rm -r RPM-temporary; } archive/[project_minus].lsm: etc/[project_short].lsm etc/ssp.awk { roffpp [addprefix "-I" [search_list]] [resolve etc/[project_short].lsm] | groff -Tascii -P-cbhu | awk -f [resolve etc/ssp.awk] > [target]; } archive/[project_short].html: etc/[project_short].html etc/ssp.awk set shallow { roffpp [addprefix "-I" [search_list]] [resolve etc/[project_short].html] | groff -Tascii -P-cbhu | awk -f [resolve etc/ssp.awk] > [target]; } LICENSE: cat1/dns-license.1 { cat [resolve [need]] > [target]; } check-tarball: etc/check_tarball.sh archive/[project_minus].tar.gz { sh [resolve etc/check_tarball.sh] [pathname [resolve archive/[project_minus].tar.gz]]; } archive/index.html: archive/[project_short].html { cp [resolve archive/[project_short].html] [target]; }