File: rules

package info (click to toggle)
eventlog 0.2.12-5
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 752 kB
  • sloc: ansic: 896; makefile: 165; sh: 148
file content (37 lines) | stat: -rwxr-xr-x 713 bytes parent folder | download | duplicates (4)
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
32
33
34
35
36
37
#!/usr/local/bin/make -f

STAMPDIR=solbuild/stamps
PREFIX=/usr/local
DOCDIR=$(PREFIX)/doc
INSTPREFIX=solbuild/libevtlog

all: binary

binary: setup configure build install pkgpackage

setup: $(STAMPDIR)/stamp-setup
$(STAMPDIR)/stamp-setup:
	mkdir solbuild/stamps || true

	touch $@

configure: $(STAMPDIR)/stamp-configure
$(STAMPDIR)/stamp-configure: setup
	./configure --prefix=$(PREFIX)
	touch $@

build: $(STAMPDIR)/stamp-build
$(STAMPDIR)/stamp-build: configure
	make
	touch $@

install:  
	dir=`pwd`; make install DESTDIR=$$dir/$(INSTPREFIX); \

pkgpackage:
	(cd $(INSTPREFIX) ; sh ../prototype-maker.sh ; sh ../pkgmaker.sh )

clean:
	rm -rf solbuild/stamps || true
	rm -rf $(INSTPREFIX) || true
	make clean