From ac8c2ef1aa30c50b568883d2051335a66437694f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 1 Feb 2014 11:30:21 +0100 Subject: Build/install manual --- doc/manual/local.mk | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 doc/manual/local.mk (limited to 'doc/manual/local.mk') diff --git a/doc/manual/local.mk b/doc/manual/local.mk new file mode 100644 index 000000000000..ae3a9df5c89f --- /dev/null +++ b/doc/manual/local.mk @@ -0,0 +1,79 @@ +XSLTPROC = $(xsltproc) --nonet $(xmlflags) \ + --param section.autolabel 1 \ + --param section.label.includes.component.label 1 \ + --param html.stylesheet \'style.css\' \ + --param xref.with.number.and.title 1 \ + --param toc.section.depth 3 \ + --param admon.style \'\' \ + --param callout.graphics.extension \'.gif\' \ + --param contrib.inline.enabled 0 + +MANUAL_SRCS := $(wildcard $(d)/*.xml) + + +# Do XInclude processing / RelaxNG validation +$(d)/manual.xmli: $(d)/manual.xml $(MANUAL_SRCS) $(d)/version.txt + $(trace-gen) $(xmllint) --nonet --xinclude $< -o $@.tmp + @mv $@.tmp $@ + +$(d)/version.txt: + $(trace-gen) echo -n $(PACKAGE_VERSION) > $@ + +# Note: RelaxNG validation requires xmllint >= 2.7.4. +$(d)/manual.is-valid: $(d)/manual.xmli + $(trace-gen) $(XSLTPROC) --novalid --stringparam profile.condition manual \ + $(docbookxsl)/profiling/profile.xsl $< 2> /dev/null | \ + $(xmllint) --nonet --noout --relaxng $(docbookrng)/docbook.rng - + @touch $@ + +clean_files += $(d)/manual.xmli $(d)/version.txt $(d)/manual.is-valid + + +# Generate man pages. +man-pages := $(foreach n, \ + nix-env.1 nix-build.1 nix-shell.1 nix-store.1 nix-instantiate.1 \ + nix-collect-garbage.1 nix-push.1 nix-pull.1 \ + nix-prefetch-url.1 nix-channel.1 \ + nix-install-package.1 nix-hash.1 nix-copy-closure.1 \ + nix.conf.5 nix-daemon.8, \ + $(d)/$(n)) + +$(man-pages): $(d)/manual.xmli $(d)/manual.is-valid + $(trace-gen) $(XSLTPROC) --stringparam profile.condition manpage \ + $(docbookxsl)/profiling/profile.xsl $< 2> /dev/null | \ + (cd doc/manual && $(XSLTPROC) $(docbookxsl)/manpages/docbook.xsl -) + +clean_files += $(d)/*.1 $(d)/*.5 $(d)/*.8 + + +# Generate the HTML manual. +$(d)/manual.html: $(d)/manual.xml $(MANUAL_SRCS) $(d)/manual.is-valid + $(trace-gen) $(XSLTPROC) --xinclude --stringparam profile.condition manual \ + $(docbookxsl)/profiling/profile.xsl $< | \ + $(XSLTPROC) --output $@ $(docbookxsl)/html/docbook.xsl - + +$(foreach file, $(d)/manual.html $(d)/style.css, $(eval $(call install-data-in, $(file), $(docdir)/manual))) + +$(foreach file, $(wildcard $(d)/figures/*.png), $(eval $(call install-data-in, $(file), $(docdir)/manual/figures))) + +$(foreach file, $(wildcard $(docbookxsl)/images/callouts/*.gif), $(eval $(call install-data-in, $(file), $(docdir)/manual/images/callouts))) + +$(eval $(call install-symlink, manual.html, $(docdir)/manual/index.html)) + +all: $(d)/manual.html + +clean_files += $(d)/manual.html + + +# Generate the PDF manual. +$(d)/manual.pdf: $(d)/manual.xml $(MANUAL_SRCS) $(d)/manual.is-valid + $(trace-gen) if test "$(dblatex)" != ""; then \ + cd doc/manual && $(XSLTPROC) --xinclude --stringparam profile.condition manual \ + $(docbookxsl)/profiling/profile.xsl manual.xml | \ + $(dblatex) -o manual.pdf $(dblatex_opts) -; \ + else \ + echo "Please install dblatex and rerun configure."; \ + exit 1; \ + fi + +clean_files += $(d)/manual.pdf -- cgit 1.4.1 From 16e7d692092449263880ee795ec419cecbe22d24 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 1 Feb 2014 12:23:14 +0100 Subject: Update Makefile variable names --- Makefile | 2 +- corepkgs/local.mk | 2 +- doc/manual/local.mk | 8 ++++---- perl/local.mk | 6 +++--- scripts/local.mk | 8 ++++---- src/boost/format/local.mk | 2 +- src/bsdiff-4.3/local.mk | 4 ++-- src/libexpr/local.mk | 2 +- src/libmain/local.mk | 2 +- src/libstore/local.mk | 2 +- src/libutil/local.mk | 2 +- src/nix-daemon/local.mk | 2 +- src/nix-env/local.mk | 2 +- src/nix-hash/local.mk | 2 +- src/nix-instantiate/local.mk | 2 +- src/nix-log2xml/local.mk | 2 +- src/nix-store/local.mk | 2 +- tests/local.mk | 6 +++--- 18 files changed, 29 insertions(+), 29 deletions(-) (limited to 'doc/manual/local.mk') diff --git a/Makefile b/Makefile index f22a70a81c99..df72578cc54b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -SUBS = \ +makefiles = \ src/boost/format/local.mk \ src/libutil/local.mk \ src/libstore/local.mk \ diff --git a/corepkgs/local.mk b/corepkgs/local.mk index a04e3e3fbc1d..19c1d06962c0 100644 --- a/corepkgs/local.mk +++ b/corepkgs/local.mk @@ -2,4 +2,4 @@ corepkgs_FILES = nar.nix buildenv.nix buildenv.pl unpack-channel.nix derivation. $(foreach file,config.nix $(corepkgs_FILES),$(eval $(call install-data-in,$(d)/$(file),$(datadir)/nix/corepkgs))) -template_files += $(d)/config.nix +template-files += $(d)/config.nix diff --git a/doc/manual/local.mk b/doc/manual/local.mk index ae3a9df5c89f..8d49e1e4d5ae 100644 --- a/doc/manual/local.mk +++ b/doc/manual/local.mk @@ -26,7 +26,7 @@ $(d)/manual.is-valid: $(d)/manual.xmli $(xmllint) --nonet --noout --relaxng $(docbookrng)/docbook.rng - @touch $@ -clean_files += $(d)/manual.xmli $(d)/version.txt $(d)/manual.is-valid +clean-files += $(d)/manual.xmli $(d)/version.txt $(d)/manual.is-valid # Generate man pages. @@ -43,7 +43,7 @@ $(man-pages): $(d)/manual.xmli $(d)/manual.is-valid $(docbookxsl)/profiling/profile.xsl $< 2> /dev/null | \ (cd doc/manual && $(XSLTPROC) $(docbookxsl)/manpages/docbook.xsl -) -clean_files += $(d)/*.1 $(d)/*.5 $(d)/*.8 +clean-files += $(d)/*.1 $(d)/*.5 $(d)/*.8 # Generate the HTML manual. @@ -62,7 +62,7 @@ $(eval $(call install-symlink, manual.html, $(docdir)/manual/index.html)) all: $(d)/manual.html -clean_files += $(d)/manual.html +clean-files += $(d)/manual.html # Generate the PDF manual. @@ -76,4 +76,4 @@ $(d)/manual.pdf: $(d)/manual.xml $(MANUAL_SRCS) $(d)/manual.is-valid exit 1; \ fi -clean_files += $(d)/manual.pdf +clean-files += $(d)/manual.pdf diff --git a/perl/local.mk b/perl/local.mk index cd07631ca888..b5550cc9f87c 100644 --- a/perl/local.mk +++ b/perl/local.mk @@ -17,7 +17,7 @@ ifeq ($(perlbindings), yes) $(d)/lib/Nix/Store.cc: $(d)/lib/Nix/Store.xs xsubpp $^ -output $@ - LIBS += Store + libraries += Store Store_DIR := $(d)/lib/Nix @@ -37,6 +37,6 @@ ifeq ($(perlbindings), yes) endif -clean_files += $(d)/lib/Nix/Config.pm $(d)/lib/Nix/Store.cc +clean-files += $(d)/lib/Nix/Config.pm $(d)/lib/Nix/Store.cc -dist_files += $(nix_perl_sources) +dist-files += $(nix_perl_sources) diff --git a/scripts/local.mk b/scripts/local.mk index 2805128db8de..606b73df6c74 100644 --- a/scripts/local.mk +++ b/scripts/local.mk @@ -9,7 +9,7 @@ nix_bin_scripts := \ $(d)/nix-pull \ $(d)/nix-push -bin_SCRIPTS += $(nix_bin_scripts) +bin-scripts += $(nix_bin_scripts) nix_substituters := \ $(d)/copy-from-other-stores.pl \ @@ -24,7 +24,7 @@ nix_noinst_scripts := \ $(d)/nix-reduce-build \ $(nix_substituters) -noinst_SCRIPTS += $(nix_noinst_scripts) +noinst-scripts += $(nix_noinst_scripts) profiledir = $(sysconfdir)/profile.d @@ -34,6 +34,6 @@ $(eval $(call install-program-in, $(d)/build-remote.pl, $(libexecdir)/nix)) $(foreach prog, $(nix_substituters), $(eval $(call install-program-in, $(prog), $(libexecdir)/nix/substituters))) $(eval $(call install-symlink, nix-build, $(bindir)/nix-shell)) -clean_files += $(nix_bin_scripts) $(nix_noinst_scripts) +clean-files += $(nix_bin_scripts) $(nix_noinst_scripts) -dist_files += $(d)/*.in +dist-files += $(d)/*.in diff --git a/src/boost/format/local.mk b/src/boost/format/local.mk index 17897fa59074..3776eff382fe 100644 --- a/src/boost/format/local.mk +++ b/src/boost/format/local.mk @@ -1,4 +1,4 @@ -LIBS += libformat +libraries += libformat libformat_NAME = libnixformat diff --git a/src/bsdiff-4.3/local.mk b/src/bsdiff-4.3/local.mk index aca1ac116205..320795a94c1b 100644 --- a/src/bsdiff-4.3/local.mk +++ b/src/bsdiff-4.3/local.mk @@ -1,4 +1,4 @@ -PROGRAMS += bsdiff bspatch +programs += bsdiff bspatch bsdiff_DIR := $(d) bsdiff_SOURCES := $(d)/bsdiff.c @@ -10,4 +10,4 @@ bspatch_SOURCES := $(d)/bspatch.c bspatch_LDFLAGS = -lbz2 $(bsddiff_compat_include) bspatch_INSTALL_DIR = $(libexecdir)/nix -dist_files += $(d)/compat-include/* +dist-files += $(d)/compat-include/* diff --git a/src/libexpr/local.mk b/src/libexpr/local.mk index de276aa65296..ff35155b1a96 100644 --- a/src/libexpr/local.mk +++ b/src/libexpr/local.mk @@ -1,4 +1,4 @@ -LIBS += libexpr +libraries += libexpr libexpr_NAME = libnixexpr diff --git a/src/libmain/local.mk b/src/libmain/local.mk index 0efeee531478..71a07d1979ab 100644 --- a/src/libmain/local.mk +++ b/src/libmain/local.mk @@ -1,4 +1,4 @@ -LIBS += libmain +libraries += libmain libmain_NAME = libnixmain diff --git a/src/libstore/local.mk b/src/libstore/local.mk index dcedd4c26ab8..a9ae53270076 100644 --- a/src/libstore/local.mk +++ b/src/libstore/local.mk @@ -1,4 +1,4 @@ -LIBS += libstore +libraries += libstore libstore_NAME = libnixstore diff --git a/src/libutil/local.mk b/src/libutil/local.mk index 83bd05f281d6..8af2e78d9ce4 100644 --- a/src/libutil/local.mk +++ b/src/libutil/local.mk @@ -1,4 +1,4 @@ -LIBS += libutil +libraries += libutil libutil_NAME = libnixutil diff --git a/src/nix-daemon/local.mk b/src/nix-daemon/local.mk index d02f9f6ce22d..db071a3f7c7e 100644 --- a/src/nix-daemon/local.mk +++ b/src/nix-daemon/local.mk @@ -1,4 +1,4 @@ -PROGRAMS += nix-daemon +programs += nix-daemon nix-daemon_DIR := $(d) diff --git a/src/nix-env/local.mk b/src/nix-env/local.mk index 5a38d2fb76af..e80719cd76f7 100644 --- a/src/nix-env/local.mk +++ b/src/nix-env/local.mk @@ -1,4 +1,4 @@ -PROGRAMS += nix-env +programs += nix-env nix-env_DIR := $(d) diff --git a/src/nix-hash/local.mk b/src/nix-hash/local.mk index 062e4d13b29e..7c290ca8466e 100644 --- a/src/nix-hash/local.mk +++ b/src/nix-hash/local.mk @@ -1,4 +1,4 @@ -PROGRAMS += nix-hash +programs += nix-hash nix-hash_DIR := $(d) diff --git a/src/nix-instantiate/local.mk b/src/nix-instantiate/local.mk index daa741eb7f08..7d1bc5ec9dfb 100644 --- a/src/nix-instantiate/local.mk +++ b/src/nix-instantiate/local.mk @@ -1,4 +1,4 @@ -PROGRAMS += nix-instantiate +programs += nix-instantiate nix-instantiate_DIR := $(d) diff --git a/src/nix-log2xml/local.mk b/src/nix-log2xml/local.mk index 8467d1973bda..46eb2e02ca64 100644 --- a/src/nix-log2xml/local.mk +++ b/src/nix-log2xml/local.mk @@ -1,4 +1,4 @@ -PROGRAMS += nix-log2xml +programs += nix-log2xml nix-log2xml_DIR := $(d) diff --git a/src/nix-store/local.mk b/src/nix-store/local.mk index edd111b42015..7f93e4c19196 100644 --- a/src/nix-store/local.mk +++ b/src/nix-store/local.mk @@ -1,4 +1,4 @@ -PROGRAMS += nix-store +programs += nix-store nix-store_DIR := $(d) diff --git a/tests/local.mk b/tests/local.mk index 21ffd047f6f2..87f4e25e6024 100644 --- a/tests/local.mk +++ b/tests/local.mk @@ -12,10 +12,10 @@ nix_tests = \ multiple-outputs.sh import-derivation.sh fetchurl.sh optimise-store.sh \ binary-cache.sh nix-profile.sh -INSTALL_TESTS += $(foreach x, $(nix_tests), tests/$(x)) +install-tests += $(foreach x, $(nix_tests), tests/$(x)) -TESTS_ENVIRONMENT = NIX_REMOTE= $(bash) -e +tests-environment = NIX_REMOTE= $(bash) -e -clean_files += $(d)/common.sh +clean-files += $(d)/common.sh installcheck: $(d)/common.sh -- cgit 1.4.1 From 6ef32bddc1f10034322966b3a5b85af7b9cdc4d8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 1 Feb 2014 14:28:31 +0100 Subject: Fix "make dist" --- Makefile | 3 +-- doc/manual/local.mk | 5 +++++ local.mk | 3 +++ perl/local.mk | 4 +--- release.nix | 5 ++--- scripts/local.mk | 2 -- src/bsdiff-4.3/local.mk | 2 -- src/libexpr/local.mk | 6 ++++-- src/libstore/local.mk | 4 +++- 9 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 local.mk (limited to 'doc/manual/local.mk') diff --git a/Makefile b/Makefile index df72578cc54b..0ad6bb236c82 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ makefiles = \ + local.mk \ src/boost/format/local.mk \ src/libutil/local.mk \ src/libstore/local.mk \ @@ -18,8 +19,6 @@ makefiles = \ doc/manual/local.mk \ tests/local.mk -GLOBAL_CXXFLAGS = -I . -I src -I src/libutil -I src/libstore -I src/libmain -I src/libexpr - include Makefile.config include mk/lib.mk diff --git a/doc/manual/local.mk b/doc/manual/local.mk index 8d49e1e4d5ae..92413eb7e2b2 100644 --- a/doc/manual/local.mk +++ b/doc/manual/local.mk @@ -28,6 +28,8 @@ $(d)/manual.is-valid: $(d)/manual.xmli clean-files += $(d)/manual.xmli $(d)/version.txt $(d)/manual.is-valid +clean-files += $(d)/manual.xmli $(d)/version.txt $(d)/manual.is-valid + # Generate man pages. man-pages := $(foreach n, \ @@ -64,6 +66,8 @@ all: $(d)/manual.html clean-files += $(d)/manual.html +dist-files += $(d)/manual.html + # Generate the PDF manual. $(d)/manual.pdf: $(d)/manual.xml $(MANUAL_SRCS) $(d)/manual.is-valid @@ -77,3 +81,4 @@ $(d)/manual.pdf: $(d)/manual.xml $(MANUAL_SRCS) $(d)/manual.is-valid fi clean-files += $(d)/manual.pdf + diff --git a/local.mk b/local.mk new file mode 100644 index 000000000000..6c99ab233273 --- /dev/null +++ b/local.mk @@ -0,0 +1,3 @@ +dist-files += $(shell git ls-files) $(shell git ls-files) + +GLOBAL_CXXFLAGS = -I . -I src -I src/libutil -I src/libstore -I src/libmain -I src/libexpr diff --git a/perl/local.mk b/perl/local.mk index b5550cc9f87c..74c054e7133f 100644 --- a/perl/local.mk +++ b/perl/local.mk @@ -15,7 +15,7 @@ $(foreach x, $(nix_perl_modules), $(eval $(call install-data-in, $(x), $(perllib ifeq ($(perlbindings), yes) $(d)/lib/Nix/Store.cc: $(d)/lib/Nix/Store.xs - xsubpp $^ -output $@ + $(trace-gen) xsubpp $^ -output $@ libraries += Store @@ -38,5 +38,3 @@ ifeq ($(perlbindings), yes) endif clean-files += $(d)/lib/Nix/Config.pm $(d)/lib/Nix/Store.cc - -dist-files += $(nix_perl_sources) diff --git a/release.nix b/release.nix index 67087190942f..29bceca7c722 100644 --- a/release.nix +++ b/release.nix @@ -30,7 +30,6 @@ let configureFlags = '' --with-docbook-rng=${docbook5}/xml/rng/docbook --with-docbook-xsl=${docbook5_xsl}/xml/xsl/docbook - --with-xml-flags=--nonet --with-dbi=${perlPackages.DBI}/${perl.libPrefix} --with-dbd-sqlite=${perlPackages.DBDSQLite}/${perl.libPrefix} --with-www-curl=${perlPackages.WWWCurl}/${perl.libPrefix} @@ -56,9 +55,9 @@ let ''; preDist = '' - make -C doc/manual install prefix=$out + make install prefix=$out makefiles=doc/manual/local.mk - make -C doc/manual manual.pdf prefix=$out + make doc/manual/manual.pdf cp doc/manual/manual.pdf $out/manual.pdf # The PDF containes filenames of included graphics (see diff --git a/scripts/local.mk b/scripts/local.mk index 606b73df6c74..f4c5e8097de4 100644 --- a/scripts/local.mk +++ b/scripts/local.mk @@ -35,5 +35,3 @@ $(foreach prog, $(nix_substituters), $(eval $(call install-program-in, $(prog), $(eval $(call install-symlink, nix-build, $(bindir)/nix-shell)) clean-files += $(nix_bin_scripts) $(nix_noinst_scripts) - -dist-files += $(d)/*.in diff --git a/src/bsdiff-4.3/local.mk b/src/bsdiff-4.3/local.mk index 320795a94c1b..c957ceab0c0f 100644 --- a/src/bsdiff-4.3/local.mk +++ b/src/bsdiff-4.3/local.mk @@ -9,5 +9,3 @@ bspatch_DIR := $(d) bspatch_SOURCES := $(d)/bspatch.c bspatch_LDFLAGS = -lbz2 $(bsddiff_compat_include) bspatch_INSTALL_DIR = $(libexecdir)/nix - -dist-files += $(d)/compat-include/* diff --git a/src/libexpr/local.mk b/src/libexpr/local.mk index ff35155b1a96..85e476e39b21 100644 --- a/src/libexpr/local.mk +++ b/src/libexpr/local.mk @@ -14,7 +14,9 @@ libexpr_LIBS = libutil libstore libformat libexpr_LDFLAGS_PROPAGATED = $(BDW_GC_LIBS) $(d)/parser-tab.cc $(d)/parser-tab.hh: $(d)/parser.y - bison -v -o $(libexpr_DIR)/parser-tab.cc $< -d + $(trace-gen) bison -v -o $(libexpr_DIR)/parser-tab.cc $< -d $(d)/lexer-tab.cc $(d)/lexer-tab.hh: $(d)/lexer.l - flex --outfile $(libexpr_DIR)/lexer-tab.cc --header-file=$(libexpr_DIR)/lexer-tab.hh $< + $(trace-gen) flex --outfile $(libexpr_DIR)/lexer-tab.cc --header-file=$(libexpr_DIR)/lexer-tab.hh $< + +clean-files += $(d)/parser-tab.cc $(d)/parser-tab.hh $(d)/lexer-tab.cc $(d)/lexer-tab.hh diff --git a/src/libstore/local.mk b/src/libstore/local.mk index a9ae53270076..2dddce740dcc 100644 --- a/src/libstore/local.mk +++ b/src/libstore/local.mk @@ -23,4 +23,6 @@ libstore_CXXFLAGS = \ $(d)/local-store.cc: $(d)/schema.sql.hh %.sql.hh: %.sql - sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/' < $< > $@ || (rm $@ && exit 1) + $(trace-gen) sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/' < $< > $@ || (rm $@ && exit 1) + +clean-files += $(d)/schema.sql.hh -- cgit 1.4.1 From 844d83352c23db4a3131ac2b11b9ed2af03cdfd6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 1 Feb 2014 15:18:48 +0100 Subject: More "make dist" fixes --- doc/manual/local.mk | 4 +++- local.mk | 4 +++- release.nix | 7 ++++--- src/libexpr/local.mk | 2 ++ 4 files changed, 12 insertions(+), 5 deletions(-) (limited to 'doc/manual/local.mk') diff --git a/doc/manual/local.mk b/doc/manual/local.mk index 92413eb7e2b2..081b9855702a 100644 --- a/doc/manual/local.mk +++ b/doc/manual/local.mk @@ -28,7 +28,7 @@ $(d)/manual.is-valid: $(d)/manual.xmli clean-files += $(d)/manual.xmli $(d)/version.txt $(d)/manual.is-valid -clean-files += $(d)/manual.xmli $(d)/version.txt $(d)/manual.is-valid +dist-files += $(d)/manual.xmli $(d)/version.txt $(d)/manual.is-valid # Generate man pages. @@ -47,6 +47,8 @@ $(man-pages): $(d)/manual.xmli $(d)/manual.is-valid clean-files += $(d)/*.1 $(d)/*.5 $(d)/*.8 +dist-files += $(d)/*.1 $(d)/*.5 $(d)/*.8 + # Generate the HTML manual. $(d)/manual.html: $(d)/manual.xml $(MANUAL_SRCS) $(d)/manual.is-valid diff --git a/local.mk b/local.mk index 6c99ab233273..174e6150e079 100644 --- a/local.mk +++ b/local.mk @@ -1,3 +1,5 @@ dist-files += $(shell git ls-files) $(shell git ls-files) -GLOBAL_CXXFLAGS = -I . -I src -I src/libutil -I src/libstore -I src/libmain -I src/libexpr +dist-files += configure config.h.in + +GLOBAL_CXXFLAGS += -I . -I src -I src/libutil -I src/libstore -I src/libmain -I src/libexpr diff --git a/release.nix b/release.nix index 29bceca7c722..8d395189e248 100644 --- a/release.nix +++ b/release.nix @@ -48,14 +48,13 @@ let distPhase = '' runHook preDist - make dist-gzip - make dist-xz + make dist mkdir -p $out/tarballs cp *.tar.* $out/tarballs ''; preDist = '' - make install prefix=$out makefiles=doc/manual/local.mk + make install docdir=$out/share/doc/nix makefiles=doc/manual/local.mk make doc/manual/manual.pdf cp doc/manual/manual.pdf $out/manual.pdf @@ -98,6 +97,8 @@ let makeFlags = "profiledir=$(out)/etc/profile.d"; + preBuild = "unset NIX_INDENT_MAKE"; + installFlags = "sysconfdir=$(out)/etc"; doInstallCheck = true; diff --git a/src/libexpr/local.mk b/src/libexpr/local.mk index 85e476e39b21..431f84b0999e 100644 --- a/src/libexpr/local.mk +++ b/src/libexpr/local.mk @@ -20,3 +20,5 @@ $(d)/lexer-tab.cc $(d)/lexer-tab.hh: $(d)/lexer.l $(trace-gen) flex --outfile $(libexpr_DIR)/lexer-tab.cc --header-file=$(libexpr_DIR)/lexer-tab.hh $< clean-files += $(d)/parser-tab.cc $(d)/parser-tab.hh $(d)/lexer-tab.cc $(d)/lexer-tab.hh + +dist-files += $(d)/parser-tab.cc $(d)/parser-tab.hh $(d)/lexer-tab.cc $(d)/lexer-tab.hh -- cgit 1.4.1 From 6dca72006aa9b1cf2f226bb5b538e744fcab976f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 1 Feb 2014 16:30:24 +0100 Subject: Only run "git ls-files" when doing "make check" --- doc/manual/local.mk | 2 +- local.mk | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'doc/manual/local.mk') diff --git a/doc/manual/local.mk b/doc/manual/local.mk index 081b9855702a..4342215b0e44 100644 --- a/doc/manual/local.mk +++ b/doc/manual/local.mk @@ -47,7 +47,7 @@ $(man-pages): $(d)/manual.xmli $(d)/manual.is-valid clean-files += $(d)/*.1 $(d)/*.5 $(d)/*.8 -dist-files += $(d)/*.1 $(d)/*.5 $(d)/*.8 +dist-files += $(man-pages) # Generate the HTML manual. diff --git a/local.mk b/local.mk index 174e6150e079..c48857f24be7 100644 --- a/local.mk +++ b/local.mk @@ -1,4 +1,6 @@ -dist-files += $(shell git ls-files) $(shell git ls-files) +ifeq ($(MAKECMDGOALS), dist) + dist-files += $(shell git ls-files) $(shell git ls-files) +endif dist-files += configure config.h.in -- cgit 1.4.1