aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 5e166e2c148bd9d60e67e979a4a250655dc5612e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
DSC := $(wildcard openssh*.dsc)
SRC := $(dir $(wildcard */.))

all: $(if ${SRC},source)
	sudo pbuilder build --buildresult . --debbuildopts -b ${DSC}

clean:
	git clean -dfx

unpack:
	dpkg-source -x ${DSC}

.PHONY: all clean unpack

ifneq (,${SRC})

source:
	dpkg-source -b ${SRC}

.PHONY: source

endif