summaryrefslogtreecommitdiff
path: root/personal/setup/emacs.md
blob: 4ac1143645386ca6b1a3b4e822a67e7e28e1fde4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Compiling

This script seems to handle both a freshly cloned copy of the
repository, and a repository where compilation has already happened:

``` bash
#!/bin/bash

set -eux

MAKE="make -j$(nproc --all)"
CONFIGURE_FLAGS="--with-xwidgets"

if ! test -f Makefile
then
	${MAKE} configure
	./configure ${CONFIGURE_FLAGS}
fi

if ! ${MAKE} CONFIGURE_FLAGS="${CONFIGURE_FLAGS}"
then
    ${MAKE} CONFIGURE_FLAGS="${CONFIGURE_FLAGS}" bootstrap
fi
```