Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nora Puchreiner
Nix
Commits
e6363b05
Commit
e6363b05
authored
21 years ago
by
Eelco Dolstra
Browse files
Options
Downloads
Patches
Plain Diff
* Pass $(prefix) and other variables through -D..., not
through config.h, to prevent silly Autoconf problems.
parent
9c620e4a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure.ac
+0
-6
0 additions, 6 deletions
configure.ac
src/Makefile.am
+17
-9
17 additions, 9 deletions
src/Makefile.am
with
17 additions
and
15 deletions
configure.ac
+
0
−
6
View file @
e6363b05
...
@@ -11,12 +11,6 @@ AC_PROG_CC
...
@@ -11,12 +11,6 @@ AC_PROG_CC
AC_PROG_CXX
AC_PROG_CXX
AC_PROG_RANLIB
AC_PROG_RANLIB
# Unix shell scripting should die a slow and painful death.
AC_DEFINE_UNQUOTED(NIX_STORE_DIR, "$(eval echo $prefix/store)", Nix store directory.)
AC_DEFINE_UNQUOTED(NIX_DATA_DIR, "$(eval echo $datadir)", Nix data directory.)
AC_DEFINE_UNQUOTED(NIX_STATE_DIR, "$(eval echo $localstatedir/nix)", Nix state directory.)
AC_DEFINE_UNQUOTED(NIX_LOG_DIR, "$(eval echo $localstatedir/log/nix)", Nix log file directory.)
AM_CONFIG_HEADER([config.h])
AM_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([Makefile src/Makefile scripts/Makefile corepkgs/Makefile])
AC_CONFIG_FILES([Makefile src/Makefile scripts/Makefile corepkgs/Makefile])
AC_OUTPUT
AC_OUTPUT
This diff is collapsed.
Click to expand it.
src/Makefile.am
+
17
−
9
View file @
e6363b05
...
@@ -3,25 +3,33 @@ check_PROGRAMS = test
...
@@ -3,25 +3,33 @@ check_PROGRAMS = test
AM_CXXFLAGS
=
-DSYSTEM
=
\"
@host@
\"
-Wall
-I
..
AM_CXXFLAGS
=
-DSYSTEM
=
\"
@host@
\"
-Wall
-I
..
nix_SOURCES
=
nix.cc
shared.cc
nix_SOURCES
=
nix.cc
nix_LDADD
=
libnix.a
-ldb_cxx-4
-lATerm
nix_LDADD
=
libshared.a
libnix.a
-ldb_cxx-4
-lATerm
nix_hash_SOURCES
=
nix-hash.cc
shared.cc
nix_hash_SOURCES
=
nix-hash.cc
nix_hash_LDADD
=
libnix.a
-ldb_cxx-4
-lATerm
nix_hash_LDADD
=
libshared.a
libnix.a
-ldb_cxx-4
-lATerm
fix_SOURCES
=
fix.cc
shared.cc
fix_SOURCES
=
fix.cc
fix_LDADD
=
libnix.a
-ldb_cxx-4
-lATerm
fix_LDADD
=
libshared.a
libnix.a
-ldb_cxx-4
-lATerm
TESTS
=
test
TESTS
=
test
test_SOURCES
=
test.cc
shared.cc
test_SOURCES
=
test.cc
test_LDADD
=
libnix.a
-ldb_cxx-4
-lATerm
test_LDADD
=
libshared.a
libnix.a
-ldb_cxx-4
-lATerm
noinst_LIBRARIES
=
libnix.a
noinst_LIBRARIES
=
libnix.a
libshared.a
libnix_a_SOURCES
=
util.cc hash.cc archive.cc md5.c
\
libnix_a_SOURCES
=
util.cc hash.cc archive.cc md5.c
\
fstate.cc store.cc globals.cc db.cc
fstate.cc store.cc globals.cc db.cc
libshared_a_SOURCES
=
shared.cc
libshared_a_CXXFLAGS
=
\
-DNIX_STORE_DIR
=
\"
$(
prefix
)
/store
\"
\
-DNIX_DATA_DIR
=
\"
$(
datadir
)
\"
\
-DNIX_STATE_DIR
=
\"
$(
localstatedir
)
/nix
\"
\
-DNIX_LOG_DIR
=
\"
$(
localstatedir
)
/log/nix
\"
install-data-local
:
install-data-local
:
$(
INSTALL
)
-d
$(
localstatedir
)
/nix
$(
INSTALL
)
-d
$(
localstatedir
)
/nix
$(
INSTALL
)
-d
$(
localstatedir
)
/nix/links
$(
INSTALL
)
-d
$(
localstatedir
)
/nix/links
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment