forked from maxime-esa/asn1scc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.debian
33 lines (25 loc) · 943 Bytes
/
Makefile.debian
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
all: build
build: dotnet-debian.SENTINEL
dotnet build -c Release Antlr/
dotnet build -c Release parseStg2/
dotnet build -c Release "asn1scc.sln"
publish: build
dotnet publish -c Release --self-contained true -r linux-x64 asn1scc.sln
publish-win64: build
dotnet publish -c Release --self-contained true -r win-x64 asn1scc.sln
dotnet-debian.SENTINEL:
# install dotnet on debian (https://docs.microsoft.com/en-us/dotnet/core/install/linux-debian)
wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
# install the sdk
sudo apt update
sudo apt install -y apt-transport-https && sudo apt update && sudo apt install -y dotnet-sdk-7.0
touch $@
tests:
$(MAKE) -C v4Tests
clean:
rm -rf asn1scc/bin packages-microsoft-prod.deb
distclean: clean
rm dotnet-debian.SENTINEL
.PHONY: all tests clean