-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathMakefile.ubuntu
51 lines (39 loc) · 1.35 KB
/
Makefile.ubuntu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# should be run in directory with source snapshot with singularity
#
# For example:
# singularity exec ubuntu-16.04.img make -f Makefile.ubuntu daily-package UBUNTU=16.04
#
TOP = .
TOP := $(shell (cd "$(TOP)"; pwd))
include $(TOP)/mk/config.make
ifeq (,$(UBUNTU))
UBUNTU = $(shell . /etc/os-release && echo $$VERSION_ID)
endif
install:
env HOME=`pwd` $(MAKE) install UBUNTU_DIST=$(UBUNTU)
build-minimal:
env HOME=`pwd` $(MAKE) build-minimal UBUNTU_DIST=$(UBUNTU)
install-rbvi:
env HOME=`pwd` $(MAKE) install-rbvi UBUNTU_DIST=$(UBUNTU)
package: ubuntu
$(APP_PYTHON_EXE) mkubuntu.py $(UBUNTU)
daily-package: ubuntu
$(APP_PYTHON_EXE) mkubuntu.py $(UBUNTU) daily
techpreview-package: ubuntu
$(APP_PYTHON_EXE) mkubuntu.py $(UBUNTU) techpreview
github-techpreview-package: ubuntu
$(APP_PYTHON_EXE) mkubuntu.py $(UBUNTU) github-techpreview
candidate-package: ubuntu
$(APP_PYTHON_EXE) mkubuntu.py $(UBUNTU) candidate
#clean:
# rm -rf ucsf-chimerax
# look for possible bugs in debian package
lint:
lintian --no-tag-display-limit --suppress-tags python-script-but-no-python-dep,shlib-with-executable-bit,unstripped-binary-or-object,embedded-library,duplicate-font-file,embedded-javascript-library,executable-not-elf-or-script ubuntu-$(UBUNTU)/*.deb
ubuntu:
ifeq (,$(UBUNTU))
$(error "Set the UBUNTU version variable on the command line")
@exit 1
else
@exit 0
endif