File: rules

package info (click to toggle)
libnjb 2.2.7~dfsg0-4.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,280 kB
  • sloc: ansic: 11,717; sh: 11,076; makefile: 117
file content (30 lines) | stat: -rwxr-xr-x 733 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

%:
	dh $@ --parallel --with autoreconf

override_dh_auto_clean:
	dh_auto_clean
	rm -f 45-libnjb.rules

override_dh_auto_build:
	dh_auto_build
ifeq ($(shell dpkg-query -s doxygen 1>/dev/null 2>&1 && echo yes),yes)
	cd doc/man/man3 && \
		rm -f _* *.[ch].3 && \
		for i in *.3; do \
			if [ `echo "$$i" | sed -e 's/^\(....\).\+/\1/'` != "njb_" ]; then \
				mv $$i njb_$$i; \
			fi \
		done
endif
	cp libnjb.rules 45-libnjb.rules

override_dh_install:
	dh_install -plibnjb-tools
	mkdir -p $(CURDIR)/debian/libnjb-tools/usr/bin
	cd $(CURDIR)/debian/libnjb-tools/usr/bin && \
        for file in `ls ../lib/libnjb/`; do \
           ln -s ../lib/libnjb/$$file $$file ; \
        done
	dh_install --remaining-packages