File: Makefile

package info (click to toggle)
slack 1%3A0.15.2-11
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 500 kB
  • sloc: perl: 2,518; makefile: 94; sh: 23
file content (35 lines) | stat: -rw-r--r-- 909 bytes parent folder | download | duplicates (7)
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
# Makefile for slack
# $Id: Makefile 188 2008-04-21 00:42:43Z sundell $

include	Makefile.common

TARGETS = all test \
    install install-bin install-conf install-lib install-man \
    clean distclean realclean
SUBDIRS = doc src test

distdir = $(PACKAGE)-$(VERSION)


$(TARGETS)::
	@set -e; \
	 for i in $(SUBDIRS); do $(MAKE) -C $$i $@ ; done

deb:
	dpkg-buildpackage -b -uc -tc -rfakeroot
	ls -l ../slack_*_all.deb

dist: distclean
	mkdir -p ../$(distdir)
	rsync -a --exclude=.svn --exclude='*.swp' --delete-excluded \
	    . ../$(distdir)/
	chmod -R a+rX ../$(distdir)
	cd .. ; \
	    tar -cp --exclude=debian -f $(distdir).tar $(distdir) ; \
	    tar -cp -f $(distdir)-debian.tar $(distdir)/debian
	rm -rf ../$(distdir)
	gzip -9f ../$(distdir).tar ../$(distdir)-debian.tar
	chmod a+r ../$(distdir).tar.gz ../$(distdir)-debian.tar.gz
	@ls -l ../$(distdir).tar.gz ../$(distdir)-debian.tar.gz

check: test