Commit Graph

24 Commits

Author SHA1 Message Date
Kevin Ballard
625ce231e7 Use pkg-config for FISHDIR/BASHDIR
It looks like zsh doesn't have a pkg-config file so we can't use it for
ZSHDIR.

Fixes #179.
2017-05-16 15:20:31 -07:00
Kevin Ballard
1537759c75 Use DESTDIR when installing/uninstalling completions 2017-05-16 14:48:26 -07:00
Kevin Ballard
e5764ff703 Fix a bunch of issues with the Makefile
* `$BASHDIR` and `$FISHDIR` had incorrect paths
* Fix `$FEATURES` to actually work
* Add `-f` to `rm` invocations to quiet missing file errors
* Just use `man` to preview the manpage
* Fix (again) `make` not rebuilding
* Add `make help` to view all of the commands and variables
2017-05-08 20:52:23 -07:00
Benjamin Sago
8f35da6bc8 Add shell completions and man preview to Makefile 2017-05-07 16:28:36 +01:00
Benjamin Sago
20b6588552 Merge branch 'master' into makefile 2017-05-07 15:59:24 +01:00
Kevin Ballard
b494c9c0f0 Always rebuild with make
`make` doesn't know how to tell if it needs to recompile or not, but
`cargo` does, so we should always call through into `cargo`.
2017-04-30 13:33:05 -07:00
Mattias Andrée
079c36b9f5 Rebulid when the source has been updated
You could use src/*.rs src/*/*.rs src/*/*/*.rs,
but explicit listing is prefered.

Ideally, you should be separate object files that
are rebuilt only when necessary, and then build
the final binary from those. But have not looked
at how to compile rust code so I don't know how
to do that, and since there are no header files
that is also probably suboptimal.

Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-05 00:56:37 +02:00
Mattias Andrée
f9208f9af8 Don't strip binaries
Let the package manager do it. You don't want to
force stripping, the symbols are useful for debugging.

Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-04 19:02:22 +02:00
Mattias Andrée
1099dad9d0 Add a missed DESTDIR
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-04 13:58:45 +02:00
Mattias Andrée
d894a3a475 Improve build rules
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-04 13:56:31 +02:00
Mattias Andrée
3d966e8184 Use = and not ?= for PREFIX
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-04 13:51:10 +02:00
Mattias Andrée
f30c75c224 Add clean rule
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-04 13:50:08 +02:00
Mattias Andrée
05451b7db8 Fix install rule and add uninstall rule
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-04 13:48:07 +02:00
Mattias Andrée
bbdcd52696 Do not look for rustc
You need cargo, not rustc, and cargo requires rustc,
so checking for rustc is incorrect. And the user will
know that she needs cargo when the command cannot be
find, so why look for it and add extra dependenices
just for that.

Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-04 13:40:04 +02:00
Mattias Andrée
54ed5f6756 Work around a bug in cargo
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-04 13:38:47 +02:00
Mattias Andrée
a77230a6e8 Proper install support
Use quotes to support spaces and such.
   Use -- to support dashes.

   And most important:

     Use DESTDIR to support installing into a staging directory.
     This is useful for packaging and verifying the install.

Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-04 13:18:13 +02:00
Ben S
1e33f9c055 Correct Nightly errors in Makefile 2016-02-10 18:21:49 +00:00
lilydjwg
9eac99cfd8 Makefile: be compatible with BSD and OS X 2015-07-31 13:11:32 +08:00
lilydjwg
cc1594360a Use the "install" program to install 2015-07-30 18:28:06 +08:00
Ben S
4635481f13 Update man path in Makefile 2015-06-07 16:52:28 +01:00
Ben S
8ce694982c Add build-no-git make command 2015-06-07 14:35:56 +01:00
David Celis
714b9c1fbe Add simple Makefile to build and install exa
This patch adds a Makefile that will build and install exa along with
its recently added manual page. This provides a little bit of a nicer
installation path while we wait for Cargo to, hopefully, provide its own
built-in installation method for packages that contain binaries.

Signed-off-by: David Celis <me@davidcel.is>
2015-02-24 10:48:39 -05:00
Ben S
a8465fed45 Move to Cargo 2014-06-28 17:24:20 +01:00
Ben S
55280a5308 Add a simple Makefile 2014-06-23 18:30:08 +01:00