File: rules

package info (click to toggle)
re 0.1-7
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 372 kB
  • sloc: ansic: 3,687; makefile: 14
file content (19 lines) | stat: -rwxr-xr-x 491 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
DESTDIR=./debian/re
include /usr/share/dpkg/architecture.mk
ifeq ($(origin CXX),default)
CXX := $(DEB_HOST_GNU_TYPE)-g++
endif

override_dh_auto_build:
	$(CXX) -fsigned-char -Wno-write-strings $(CXXFLAGS) $(LDFLAGS) src/re_cmd.c src/ru32call.c src/ru32cp.c src/ru32var.c src/ru32lat.c  src/ru32fi.c src/ru32au.c src/ru32mau.c src/ru32un.c -ore

override_dh_auto_clean:
	rm -f ./re
	rm -f ./src/*.o

override_dh_auto_install:
	install ./re $(DESTDIR)/usr/bin/re

%:
	dh $@