-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (27 loc) · 981 Bytes
/
Copy pathMakefile
File metadata and controls
43 lines (27 loc) · 981 Bytes
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
# Makefile
# ---------------------------------------------------------------------------------------------------
THIS := $(abspath $(lastword $(MAKEFILE_LIST)))
ROOT := $(dir $(THIS))
# ---------------------------------------------------------------------------------------------------
DISTRO_ID := $(shell . /etc/os-release && echo $$ID)
DISTRO_VERSION := $(shell . /etc/os-release && echo $$VERSION_ID)
DISTRO_LIKE := $(shell . /etc/os-release && echo $$ID_LIKE)
ifeq ($(DISTRO_ID),debian)
ctags := ctags-exuberant
endif
ifeq ($(DISTRO_ID),redhat)
ctags := ctags
endif
# ---------------------------------------------------------------------------------------------------
tags ::
@$(ctags) --recurse=yes src/python/main
dev-init ::
@$(ROOT)/bin/dev-init
venv-freeze ::
@$(ROOT)/bin/venv-freeze
venv-install ::
@$(ROOT)/bin/venv-install
info ::
@echo DISTRO_ID=\"$(DISTRO_ID)\"
@echo DISTRO_VERSION=\"$(DISTRO_VERSION)\"
@echo DISTRO_LIKE=\"$(DISTRO_LIKE)\"