File: rules

package info (click to toggle)
flwm 0.25-8
  • links: PTS
  • area: main
  • in suites: potato
  • size: 308 kB
  • ctags: 406
  • sloc: cpp: 3,049; sh: 208; makefile: 110; tcl: 54
file content (66 lines) | stat: -rwxr-xr-x 2,408 bytes parent folder | download
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/make -f

build: build-stamp
build-stamp:
	test -e debian/control
	env CXX="g++ -g" ./configure --prefix=/usr/X11R6
	# Add here commands to compile the package.
	$(MAKE) LIBS="-lfltk -lGL"
	touch build-stamp

clean:
	test -e debian/control
	test root = "`whoami`" || (echo need root priviledges; exit 1)
	rm -f build-stamp install-stamp
	# Add here commands to clean up after the build process.
	-$(MAKE) clean
	rm -f makeinclude config.status config.cache config.log
	rm -rf debian/files debian/substvars debian/tmp

install: install-stamp
install-stamp: build-stamp
	test -e debian/control
	test root = "`whoami`" || (echo need root priviledges; exit 1)
	rm -rf debian/substvars debian/tmp
	install -d -m0755 debian/tmp/usr/X11R6/bin \
		debian/tmp/usr/X11R6/man/man1
	# Add here commands to install the package into debian/tmp.
	$(MAKE) install prefix=`pwd`/debian/tmp/usr/X11R6
	touch install-stamp

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

DOCDIR:=debian/tmp/usr/share/doc/flwm
# Build architecture-dependent files here.
binary-arch: build install
	test -e debian/control
	test root = "`whoami`" || (echo need root priviledges; exit 1)
	install -d -m0755 $(DOCDIR)
	install -m0644 README $(DOCDIR)/README
	install -m0644 debian/README.debian $(DOCDIR)/README.Debian
	install -m0644 debian/copyright $(DOCDIR)/copyright
	install -m0644 debian/changelog $(DOCDIR)/changelog.Debian
	chmod 0644 debian/tmp/usr/X11R6/man/man1/flwm.1
	gzip -9 $(DOCDIR)/README* $(DOCDIR)/changelog.Debian \
		debian/tmp/usr/X11R6/man/man1/flwm.1
	install -d -m0755 debian/tmp/usr/lib/menu
	install -m0644 debian/menu debian/tmp/usr/lib/menu/flwm
	install -d -m0755 debian/tmp/etc/menu-methods
	install -m0755 debian/menu-method debian/tmp/etc/menu-methods/flwm
	strip --remove-section=.comment --remove-section=.note \
		debian/tmp/usr/X11R6/bin/flwm
	install -d -m0755 debian/tmp/DEBIAN
	install -m0644 debian/conffiles debian/tmp/DEBIAN
	install -m0755 debian/postinst debian/postrm debian/prerm \
		debian/tmp/DEBIAN
	dpkg-shlibdeps debian/tmp/usr/X11R6/bin/flwm
	dpkg-gencontrol
	dpkg --build debian/tmp ..

source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary