aboutsummaryrefslogtreecommitdiff
path: root/examples/symlinks/Makefile
blob: c90184bcdc1e2c906e2dccc6859023bce7a6a262 (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
26
27
28
29
30
31
include /usr/share/cibs/rules/ips.mk
include /usr/share/cibs/rules/git.mk
include /usr/share/cibs/rules/patch.mk
include /usr/share/cibs/rules/32.mk


summary := scan/change symbolic links
license := PD-like
license-file := symlinks.license

home         := http://packages.debian.org/source/sid/symlinks
name         := symlinks
version      := 1.4
git-url      := http://anonscm.debian.org/git/users/joachim-guest/symlinks.git

# Tag, commit or branch. Passed to git checkout as is:
# git checkout $(git-checkout)
git-checkout := upstream/$(version)

configure-%-stamp:
	touch $@

build-%-stamp: download-stamp patch-stamp
	[ -d "$(builddir)" ] || mkdir -p "$(builddir)"
	$(CC) $(CFLAGS) $(sourcedir)/symlinks.c -o $(builddir)/symlinks
	touch $@

install-%-stamp: build-%-stamp
	mkdir -p $(protodir)/$(bindir)
	cp $(builddir)/symlinks $(protodir)/$(bindir)
	touch $@