File: Makefile.am

package info (click to toggle)
light 1.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 232 kB
  • sloc: ansic: 1,439; makefile: 44; sh: 9
file content (32 lines) | stat: -rw-r--r-- 908 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
SUBDIRS        = src
dist_man1_MANS = light.1
doc_DATA       = README.md COPYING ChangeLog.md
EXTRA_DIST     = README.md COPYING ChangeLog.md

if UDEV
udev_DATA      = 90-backlight.rules
EXTRA_DIST    += $(top_srcdir)/90-backlight.rules
endif

# lintian --profile debian -i -I --show-overrides ../$PKG.changes
deb:
	dpkg-buildpackage -uc -us -B

#
# Target to run when building a release
#
release: distcheck
	@for file in $(DIST_ARCHIVES); do	\
		md5sum $$file > ../$$file.md5;	\
	done
	@mv $(DIST_ARCHIVES) ../
	@echo
	@echo "Resulting release files:"
	@echo "================================================================="
	@for file in $(DIST_ARCHIVES); do					\
		printf "%-32s Distribution tarball\n" $$file;			\
		printf "%-32s " $$file.md5; cat ../$$file.md5 | cut -f1 -d' ';	\
	done
	@for file in `cd ..; ls $(PACKAGE)_$(VERSION)*`; do			\
		printf "%-32s Debian/Ubuntu file\n" $$file;			\
	done