aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.clean
blob: a545042cca5943aad39fdf448331af46c6d84081 (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
# 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 configure
	$(MAKE) -C $(arch) $@

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

configure:
	autoconf

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

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

Privacy Policy