aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 6738ba57c014b83e1e5e0d586d89843cda99dd40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# passed to configure
prefix = /usr/local

# arch name -- for build directory
arch := $(shell echo "arch-`uname -m`-`uname -s`" | tr "A-Z" "a-z")

# targets
build all install: $(arch)/Makefile
	$(MAKE) -C $(arch) $@

clean distclean:
	-test -d "$(arch)" && rm -rf "$(arch)"

tarball rpm dsc debs pbuild release snapshot snap:
	./configure
	$(MAKE) $@

$(arch)/Makefile:
	mkdir -p $(arch)
	(cd $(arch); ../configure	\
		--prefix=$(prefix)	)

Privacy Policy