File: Makefile

package info (click to toggle)
brightnesspicker 1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 204 kB
  • sloc: cpp: 126; makefile: 36
file content (54 lines) | stat: -rw-r--r-- 1,840 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
# brightnesspicker
# Copyright (C) 2022-2024 Salvo "LtWorf" Tomaselli
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
#
# author Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>

.PHONY: clean
clean:
	$(RM) -r deb-pkg

.PHONY: dist
dist:
	rm -rf /tmp/brightnesspicker/
	rm -rf /tmp/brightnesspicker-*
	mkdir /tmp/brightnesspicker/
	cp -R * /tmp/brightnesspicker/
	( \
		cd /tmp; \
		tar --exclude '*.user' -zcf brightnesspicker.tar.gz \
			brightnesspicker/src \
			brightnesspicker/Makefile \
			brightnesspicker/LICENSE \
			brightnesspicker/README.md \
			brightnesspicker/CHANGELOG \
			brightnesspicker/CODE_OF_CONDUCT.md \
	)
	mv /tmp/brightnesspicker.tar.gz ./brightnesspicker_`head -1 CHANGELOG`.orig.tar.gz
	gpg --sign --armor --detach-sign ./brightnesspicker_`head -1 CHANGELOG`.orig.tar.gz

.PHONY: deb-pkg
deb-pkg: dist
	$(RM) -r /tmp/brightnesspicker*
	mv brightnesspicker*orig* /tmp
	cd /tmp; tar -xf brightnesspicker*orig*.gz
	cp -r debian /tmp/brightnesspicker/
	cd /tmp/brightnesspicker; dpkg-buildpackage --changes-option=-S
	mkdir -p deb-pkg
	mv /tmp/brightnesspicker*.* deb-pkg
	lintian --pedantic -E --color auto -i -I deb-pkg/*changes deb-pkg/*deb

translations:
	cd src; lupdate -verbose brightnesspicker.pro