File: Makefile

package info (click to toggle)
powermgmt-base 1.6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 88 kB
  • ctags: 14
  • sloc: makefile: 71; sh: 70; ansic: 36
file content (38 lines) | stat: -rw-r--r-- 676 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

all: build

VER_RELEASE=1.6

DIR_TMP=/tmp
NAME=powermgmt-base
DIR_SRC=$(NAME)-$(VER_RELEASE)
FILE_TARBALL=$(NAME)_$(VER_RELEASE).tar.gz

install: 

uninstall:

depend:

build:
	make -C src all

kdist_clean: clean

clean:
	make -C src clean

tarball: clean
	debian/rules clean
	rm -vrf $(DIR_TMP)/$(DIR_SRC)
	mkdir $(DIR_TMP)/$(DIR_SRC)
	cp -vLprf Makefile* man src debian $(DIR_TMP)/$(DIR_SRC)
	chown -R root.root $(DIR_TMP)/$(DIR_SRC)
	rm -vf $(DIR_TMP)/$(FILE_TARBALL)
	sh -c "cd $(DIR_TMP) ; /bin/tar -zcvf $(FILE_TARBALL) $(DIR_SRC)"
	@echo Tarball $(DIR_TMP)/$(FILE_TARBALL) has been created.
	rm -rf $(DIR_TMP)/$(DIR_SRC)

deb:
	debian/rules clean
	debian/rules binary