summarylogtreecommitdiffstats
path: root/Makefile
blob: b2a6fee7ffa9916403d4a8ec04ba9fcd60eab680 (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
25
all: .SRCINFO

.SRCINFO: PKGBUILD
	makepkg --printsrcinfo > .SRCINFO

test: systemc
	testing-x86_64-build -c -- -n -I systemc/systemc-*.pkg*

quick-test:
	makepkg -sf
	namcap archc-git-*.pkg*

systemc:
	# Make systemc dependency from AUR
	if [ ! -f systemc/systemc-*.pkg* ] ; then \
		rm -rf systemc/ && \
		wget https://aur.archlinux.org/cgit/aur.git/snapshot/systemc.tar.gz && \
		tar xf systemc.tar.gz && \
		cd systemc && makepkg ;\
	fi

clean:
	rm -rf ArchC/ pkg/ src/ systemc/ *.log archc-git-*.pkg*

.PHONY: all test quick-test systemc clean